ProgressBarPage.xaml 1.3 KB

123456789101112131415161718192021222324252627282930
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. x:Class="ControlCatalog.Pages.ProgressBarPage">
  4. <StackPanel Orientation="Vertical" Spacing="4">
  5. <TextBlock Classes="h1">ProgressBar</TextBlock>
  6. <TextBlock Classes="h2">A progress bar control</TextBlock>
  7. <StackPanel>
  8. <CheckBox
  9. x:Name="showProgress"
  10. Margin="10,16,0,0"
  11. Content="Show Progress Text" />
  12. <StackPanel Orientation="Horizontal"
  13. Margin="0,16,0,0"
  14. HorizontalAlignment="Center"
  15. Spacing="16">
  16. <StackPanel Spacing="16">
  17. <ProgressBar ShowProgressText="{Binding #showProgress.IsChecked}" Value="{Binding #hprogress.Value}" />
  18. <ProgressBar IsIndeterminate="True"/>
  19. </StackPanel>
  20. <ProgressBar ShowProgressText="{Binding #showProgress.IsChecked}" Value="{Binding #vprogress.Value}" Orientation="Vertical" />
  21. <ProgressBar Orientation="Vertical" IsIndeterminate="True" />
  22. </StackPanel>
  23. <StackPanel Margin="16">
  24. <Slider Name="hprogress" Maximum="100" Value="40"/>
  25. <Slider Name="vprogress" Maximum="100" Value="60"/>
  26. </StackPanel>
  27. </StackPanel>
  28. </StackPanel>
  29. </UserControl>