I just learn how simple progress bar works. But I want to make a progress graph percent or some sort of progress status.
The problem is, I'm having a problem whenever I include the progressbar inside the list view cell. Is it possible that I can put the progressbar working inside the list view cell? Here's my code.
<ListView>
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout Orientation="Vertical" Padding="10">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Label Text="Dummy Me" Grid.Row="0" Grid.Column="0" />
<Label Text="Dummy Me2" Grid.Row="0" Grid.Column="1" />
</Grid>
<ProgressBar x:Name="myProgressStatus" Progress="0.2" HeightRequest="200" Width="150" />
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
Here's my Progress behind the xaml.
protected async override void OnAppearing()
{
base.OnAppearing();
myProgressStatus.ProgressTo(.2, 250, Easing.Linear);
}
While the error says,
The name 'myProgressStatus' does not exist in the current context ...