|
| 1 | +<UserControl xmlns="https://github.com/avaloniaui" |
| 2 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | + xmlns:hc="https://handyorg.github.io/handycontrol" |
| 4 | + x:Class="HandyControlDemo.UserControl.NativeProgressBarDemo"> |
| 5 | + <ScrollViewer> |
| 6 | + <hc:UniformSpacingPanel Margin="32" |
| 7 | + Spacing="32" |
| 8 | + ChildWrapping="Wrap"> |
| 9 | + <hc:UniformSpacingPanel Spacing="10" |
| 10 | + ItemWidth="400" |
| 11 | + Orientation="Vertical"> |
| 12 | + <ProgressBar Value="20" |
| 13 | + ShowProgressText="True" /> |
| 14 | + <ProgressBar Theme="{StaticResource ProgressBarSuccess}" |
| 15 | + Value="40" |
| 16 | + ShowProgressText="True" /> |
| 17 | + <ProgressBar Theme="{StaticResource ProgressBarInfo}" |
| 18 | + Value="60" |
| 19 | + ShowProgressText="True" /> |
| 20 | + <ProgressBar Theme="{StaticResource ProgressBarWarning}" |
| 21 | + Value="80" |
| 22 | + ShowProgressText="True" /> |
| 23 | + <ProgressBar Theme="{StaticResource ProgressBarDanger}" |
| 24 | + ShowProgressText="True" |
| 25 | + Value="100" |
| 26 | + Maximum="200" |
| 27 | + IsIndeterminate="True" /> |
| 28 | + |
| 29 | + <ProgressBar Theme="{StaticResource ProgressBarPrimaryStripe}" |
| 30 | + Value="120" |
| 31 | + Maximum="200" /> |
| 32 | + <ProgressBar Theme="{StaticResource ProgressBarSuccessStripe}" |
| 33 | + Value="60" |
| 34 | + Maximum="200" /> |
| 35 | + <ProgressBar Theme="{StaticResource ProgressBarInfoStripe}" |
| 36 | + Value="50" |
| 37 | + Maximum="200" /> |
| 38 | + <ProgressBar Theme="{StaticResource ProgressBarWarningStripe}" |
| 39 | + Value="180" |
| 40 | + Maximum="200" /> |
| 41 | + <ProgressBar Theme="{StaticResource ProgressBarDangerStripe}" |
| 42 | + IsIndeterminate="True" |
| 43 | + Maximum="200" /> |
| 44 | + <ProgressBar Theme="{StaticResource ProgressBarFlat}" |
| 45 | + Value="110" |
| 46 | + Maximum="200" |
| 47 | + IsIndeterminate="True" /> |
| 48 | + </hc:UniformSpacingPanel> |
| 49 | + <hc:UniformSpacingPanel Spacing="10" |
| 50 | + ItemHeight="300"> |
| 51 | + <ProgressBar Value="20" |
| 52 | + ShowProgressText="True" |
| 53 | + Orientation="Vertical" /> |
| 54 | + <ProgressBar Theme="{StaticResource ProgressBarSuccess}" |
| 55 | + Value="40" |
| 56 | + ShowProgressText="True" |
| 57 | + Orientation="Vertical" /> |
| 58 | + <ProgressBar Theme="{StaticResource ProgressBarInfo}" |
| 59 | + Value="60" |
| 60 | + ShowProgressText="True" |
| 61 | + Orientation="Vertical" /> |
| 62 | + <ProgressBar Theme="{StaticResource ProgressBarWarning}" |
| 63 | + Value="80" |
| 64 | + ShowProgressText="True" |
| 65 | + Orientation="Vertical" /> |
| 66 | + <ProgressBar Theme="{StaticResource ProgressBarDanger}" |
| 67 | + Value="100" |
| 68 | + Maximum="200" |
| 69 | + IsIndeterminate="True" |
| 70 | + Orientation="Vertical" /> |
| 71 | + |
| 72 | + <ProgressBar Theme="{StaticResource ProgressBarPrimaryStripe}" |
| 73 | + Value="120" |
| 74 | + Maximum="200" |
| 75 | + Orientation="Vertical" /> |
| 76 | + <ProgressBar Theme="{StaticResource ProgressBarSuccessStripe}" |
| 77 | + Value="60" |
| 78 | + Maximum="200" |
| 79 | + Orientation="Vertical" /> |
| 80 | + <ProgressBar Theme="{StaticResource ProgressBarInfoStripe}" |
| 81 | + Value="50" |
| 82 | + Maximum="200" |
| 83 | + Orientation="Vertical" /> |
| 84 | + <ProgressBar Theme="{StaticResource ProgressBarWarningStripe}" |
| 85 | + Value="180" |
| 86 | + Maximum="200" |
| 87 | + Orientation="Vertical" /> |
| 88 | + <ProgressBar Theme="{StaticResource ProgressBarDangerStripe}" |
| 89 | + IsIndeterminate="True" |
| 90 | + Maximum="200" |
| 91 | + Orientation="Vertical" /> |
| 92 | + <ProgressBar Theme="{StaticResource ProgressBarFlat}" |
| 93 | + Value="110" |
| 94 | + Maximum="200" |
| 95 | + IsIndeterminate="True" |
| 96 | + Orientation="Vertical" /> |
| 97 | + </hc:UniformSpacingPanel> |
| 98 | + </hc:UniformSpacingPanel> |
| 99 | + </ScrollViewer> |
| 100 | +</UserControl> |
0 commit comments