Files
maui-linux/samples/ControlGallery/Pages/TogglesPage.xaml.cs
logikonline f945d2a537 Add control gallery sample and roadmap documentation
- 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>
2025-12-19 05:24:35 -05:00

28 lines
680 B
C#

namespace ControlGallery.Pages;
public partial class TogglesPage : ContentPage
{
public TogglesPage()
{
InitializeComponent();
}
private void OnCheckBoxChanged(object sender, CheckedChangedEventArgs e)
{
CheckBoxLabel.Text = e.Value ? "Agreed!" : "Not agreed";
}
private void OnSwitchToggled(object sender, ToggledEventArgs e)
{
SwitchLabel.Text = $"Notifications: {(e.Value ? "On" : "Off")}";
}
private void OnRadioButtonChecked(object sender, CheckedChangedEventArgs e)
{
if (e.Value && sender is RadioButton rb)
{
RadioLabel.Text = $"Selected: {rb.Content}";
}
}
}