- Add comprehensive ControlGallery sample app with 12 pages demonstrating all 35+ controls - Add detailed ROADMAP.md with version milestones - Add README placeholders for VSIX icons and template images - Sample pages include: Home, Buttons, Labels, Entry, Pickers, Sliders, Toggles, Progress, Images, CollectionView, CarouselView, SwipeView, RefreshView 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
34 lines
1.1 KiB
C#
34 lines
1.1 KiB
C#
namespace ControlGallery.Pages;
|
|
|
|
public partial class ProgressPage : ContentPage
|
|
{
|
|
public ProgressPage()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void OnProgress0(object sender, EventArgs e) => DemoProgress.Progress = 0;
|
|
private void OnProgress50(object sender, EventArgs e) => DemoProgress.Progress = 0.5;
|
|
private void OnProgress100(object sender, EventArgs e) => DemoProgress.Progress = 1.0;
|
|
|
|
private void OnStartIndicator(object sender, EventArgs e) => ControlledIndicator.IsRunning = true;
|
|
private void OnStopIndicator(object sender, EventArgs e) => ControlledIndicator.IsRunning = false;
|
|
|
|
private async void OnAnimateProgress(object sender, EventArgs e)
|
|
{
|
|
AnimatedProgress.Progress = 0;
|
|
await AnimatedProgress.ProgressTo(1.0, 2000, Easing.Linear);
|
|
}
|
|
|
|
private async void OnShowLoading(object sender, EventArgs e)
|
|
{
|
|
ContentPanel.IsVisible = false;
|
|
LoadingPanel.IsVisible = true;
|
|
|
|
await Task.Delay(2000);
|
|
|
|
LoadingPanel.IsVisible = false;
|
|
ContentPanel.IsVisible = true;
|
|
}
|
|
}
|