|
3996 | 3996 |
|
3997 | 3997 | </StackPanel> |
3998 | 3998 |
|
3999 | | - <!-- ══════════════════════════════════════════════════════════════ |
4000 | | - ButtonSpinner Demo |
4001 | | - ══════════════════════════════════════════════════════════════ --> |
| 3999 | + <!-- |
| 4000 | + ══════════════════════════════════════════════════════════════ |
| 4001 | + ButtonSpinner Demo |
| 4002 | + ══════════════════════════════════════════════════════════════ |
| 4003 | + --> |
4002 | 4004 | <StackPanel Margin="0,16,0,0" Orientation="Vertical"> |
4003 | 4005 | <TextBlock |
4004 | 4006 | FontSize="16" |
4005 | 4007 | FontWeight="SemiBold" |
4006 | 4008 | Text="ButtonSpinner" /> |
4007 | 4009 |
|
4008 | 4010 | <!-- Default (grouped buttons, right) --> |
4009 | | - <StackPanel Margin="0,8,0,0" Orientation="Horizontal" VerticalAlignment="Center"> |
| 4011 | + <StackPanel |
| 4012 | + Margin="0,8,0,0" |
| 4013 | + VerticalAlignment="Center" |
| 4014 | + Orientation="Horizontal"> |
4010 | 4015 | <TextBlock |
4011 | 4016 | MinWidth="220" |
4012 | 4017 | VerticalAlignment="Center" |
4013 | 4018 | Text="Default — buttons right" /> |
4014 | 4019 | <vio:ButtonSpinner Width="200" Spin="ButtonSpinnerDemo_OnSpin"> |
4015 | | - <TextBlock x:Name="ButtonSpinnerDefaultValueText" Text="Value: 0" VerticalAlignment="Center" /> |
| 4020 | + <TextBlock |
| 4021 | + x:Name="ButtonSpinnerDefaultValueText" |
| 4022 | + VerticalAlignment="Center" |
| 4023 | + Text="Apple" /> |
4016 | 4024 | </vio:ButtonSpinner> |
4017 | 4025 | </StackPanel> |
4018 | 4026 |
|
4019 | 4027 | <!-- Default, buttons on the left --> |
4020 | | - <StackPanel Margin="0,8,0,0" Orientation="Horizontal" VerticalAlignment="Center"> |
| 4028 | + <StackPanel |
| 4029 | + Margin="0,8,0,0" |
| 4030 | + VerticalAlignment="Center" |
| 4031 | + Orientation="Horizontal"> |
4021 | 4032 | <TextBlock |
4022 | 4033 | MinWidth="220" |
4023 | 4034 | VerticalAlignment="Center" |
4024 | 4035 | Text="ButtonSpinnerLocation=Left" /> |
4025 | | - <vio:ButtonSpinner Width="200" ButtonSpinnerLocation="Left" Spin="ButtonSpinnerDemo_OnSpin"> |
4026 | | - <TextBlock x:Name="ButtonSpinnerLeftValueText" Text="Value: 0" VerticalAlignment="Center" /> |
| 4036 | + <vio:ButtonSpinner |
| 4037 | + Width="200" |
| 4038 | + ButtonSpinnerLocation="Left" |
| 4039 | + Spin="ButtonSpinnerDemo_OnSpin"> |
| 4040 | + <TextBlock |
| 4041 | + x:Name="ButtonSpinnerLeftValueText" |
| 4042 | + VerticalAlignment="Center" |
| 4043 | + Text="Apple" /> |
4027 | 4044 | </vio:ButtonSpinner> |
4028 | 4045 | </StackPanel> |
4029 | 4046 |
|
4030 | 4047 | <!-- ShowButtonSpinner = False --> |
4031 | | - <StackPanel Margin="0,8,0,0" Orientation="Horizontal" VerticalAlignment="Center"> |
| 4048 | + <StackPanel |
| 4049 | + Margin="0,8,0,0" |
| 4050 | + VerticalAlignment="Center" |
| 4051 | + Orientation="Horizontal"> |
4032 | 4052 | <TextBlock |
4033 | 4053 | MinWidth="220" |
4034 | 4054 | VerticalAlignment="Center" |
4035 | 4055 | Text="ShowButtonSpinner=False" /> |
4036 | 4056 | <vio:ButtonSpinner Width="200" ShowButtonSpinner="False"> |
4037 | | - <TextBlock Text="No buttons" VerticalAlignment="Center" /> |
| 4057 | + <TextBlock VerticalAlignment="Center" Text="No buttons" /> |
4038 | 4058 | </vio:ButtonSpinner> |
4039 | 4059 | </StackPanel> |
4040 | 4060 |
|
4041 | 4061 | <!-- Split variant, buttons right --> |
4042 | | - <StackPanel Margin="0,8,0,0" Orientation="Horizontal" VerticalAlignment="Center"> |
| 4062 | + <StackPanel |
| 4063 | + Margin="0,8,0,0" |
| 4064 | + VerticalAlignment="Center" |
| 4065 | + Orientation="Horizontal"> |
4043 | 4066 | <TextBlock |
4044 | 4067 | MinWidth="220" |
4045 | 4068 | VerticalAlignment="Center" |
4046 | 4069 | Text="SplitButtonSpinnerStyle" /> |
4047 | | - <vio:ButtonSpinner Width="200" Style="{DynamicResource SplitButtonSpinnerStyle}" Spin="ButtonSpinnerDemo_OnSpin"> |
4048 | | - <TextBlock x:Name="ButtonSpinnerSplitRightValueText" Text="Value: 0" VerticalAlignment="Center" /> |
| 4070 | + <vio:ButtonSpinner |
| 4071 | + Width="200" |
| 4072 | + Spin="ButtonSpinnerDemo_OnSpin" |
| 4073 | + Style="{DynamicResource SplitButtonSpinnerStyle}"> |
| 4074 | + <TextBlock |
| 4075 | + x:Name="ButtonSpinnerSplitRightValueText" |
| 4076 | + VerticalAlignment="Center" |
| 4077 | + Text="Apple" /> |
4049 | 4078 | </vio:ButtonSpinner> |
4050 | 4079 | </StackPanel> |
4051 | 4080 |
|
4052 | 4081 | <!-- Split variant, buttons left --> |
4053 | | - <StackPanel Margin="0,8,0,0" Orientation="Horizontal" VerticalAlignment="Center"> |
| 4082 | + <StackPanel |
| 4083 | + Margin="0,8,0,0" |
| 4084 | + VerticalAlignment="Center" |
| 4085 | + Orientation="Horizontal"> |
4054 | 4086 | <TextBlock |
4055 | 4087 | MinWidth="220" |
4056 | 4088 | VerticalAlignment="Center" |
4057 | 4089 | Text="SplitButtonSpinner, Location=Left" /> |
4058 | 4090 | <vio:ButtonSpinner |
4059 | 4091 | Width="200" |
4060 | 4092 | ButtonSpinnerLocation="Left" |
4061 | | - Style="{DynamicResource SplitButtonSpinnerStyle}" |
4062 | | - Spin="ButtonSpinnerDemo_OnSpin"> |
4063 | | - <TextBlock x:Name="ButtonSpinnerSplitLeftValueText" Text="Value: 0" VerticalAlignment="Center" /> |
| 4093 | + Spin="ButtonSpinnerDemo_OnSpin" |
| 4094 | + Style="{DynamicResource SplitButtonSpinnerStyle}"> |
| 4095 | + <TextBlock |
| 4096 | + x:Name="ButtonSpinnerSplitLeftValueText" |
| 4097 | + VerticalAlignment="Center" |
| 4098 | + Text="Apple" /> |
4064 | 4099 | </vio:ButtonSpinner> |
4065 | 4100 | </StackPanel> |
4066 | 4101 |
|
4067 | 4102 | <!-- Disabled --> |
4068 | | - <StackPanel Margin="0,8,0,0" Orientation="Horizontal" VerticalAlignment="Center"> |
| 4103 | + <StackPanel |
| 4104 | + Margin="0,8,0,0" |
| 4105 | + VerticalAlignment="Center" |
| 4106 | + Orientation="Horizontal"> |
4069 | 4107 | <TextBlock |
4070 | 4108 | MinWidth="220" |
4071 | 4109 | VerticalAlignment="Center" |
4072 | 4110 | Text="Disabled" /> |
4073 | 4111 | <vio:ButtonSpinner Width="200" IsEnabled="False"> |
4074 | | - <TextBlock Text="Disabled" VerticalAlignment="Center" /> |
| 4112 | + <TextBlock VerticalAlignment="Center" Text="Disabled" /> |
4075 | 4113 | </vio:ButtonSpinner> |
4076 | 4114 | </StackPanel> |
4077 | 4115 |
|
|
0 commit comments