File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 54
54
<Setter Property =" CornerRadius" Value =" 5" />
55
55
</Style >
56
56
57
+ <Style Selector =" ToggleButton.Left /template/ ContentPresenter" >
58
+ <Setter Property =" CornerRadius" Value =" 5,0,0,5" />
59
+ </Style >
60
+ <Style Selector =" ToggleButton.Middle /template/ ContentPresenter" >
61
+ <Setter Property =" CornerRadius" Value =" 0" />
62
+ </Style >
63
+ <Style Selector =" ToggleButton.Right /template/ ContentPresenter" >
64
+ <Setter Property =" CornerRadius" Value =" 0,5,5,0" />
65
+ </Style >
66
+
57
67
<Style Selector =" Button.Accent" >
58
68
<Setter Property =" Background" Value =" {DynamicResource SystemAccentColor}" />
59
69
</Style >
Original file line number Diff line number Diff line change 43
43
<ColumnDefinition Width =" *" />
44
44
</Grid .ColumnDefinitions>
45
45
46
- <ToggleButton Name =" m_WhiteBtn" IsThreeState =" False" IsChecked =" True" Click =" OnWhiteClick" Grid.Column=" 0" HorizontalAlignment =" Stretch" >
46
+ <ToggleButton Name =" m_WhiteBtn" IsThreeState =" False" IsChecked =" True" Click =" OnWhiteClick" Grid.Column=" 0" HorizontalAlignment =" Stretch"
47
+ Classes =" Left" >
47
48
<Image Name =" m_White" Height =" 100" ></Image >
48
49
</ToggleButton >
49
50
<ToggleButton Name =" m_RandomBtn" IsThreeState =" False" Click =" OnRandomClick" Grid.Column=" 1" HorizontalAlignment =" Stretch"
50
- Height =" {Binding #m_WhiteBtn.Bounds.Height}" >
51
+ Height =" {Binding #m_WhiteBtn.Bounds.Height}" Classes = " Middle " >
51
52
<TextBlock Text =" ?" FontSize =" 36" VerticalAlignment =" Center" HorizontalAlignment =" Center" />
52
53
</ToggleButton >
53
- <ToggleButton Name =" m_BlackBtn" IsThreeState =" False" Click =" OnBlackClick" Grid.Column=" 2" HorizontalAlignment =" Stretch" >
54
+ <ToggleButton Name =" m_BlackBtn" IsThreeState =" False" Click =" OnBlackClick" Grid.Column=" 2" HorizontalAlignment =" Stretch"
55
+ Classes =" Right" >
54
56
<Image Name =" m_Black" Height =" 100" ></Image >
55
57
</ToggleButton >
56
58
You can’t perform that action at this time.
0 commit comments