File tree Expand file tree Collapse file tree 3 files changed +27
-5
lines changed Expand file tree Collapse file tree 3 files changed +27
-5
lines changed Original file line number Diff line number Diff line change 144
144
<StackPanel Grid.Row=" 2" Orientation =" Horizontal" Margin =" 0 16 0 0" >
145
145
<Button Style =" {StaticResource MaterialDesignRaisedLightButton}" Margin =" 0 0 8 0" Width =" 100"
146
146
ToolTip =" Resource name: MaterialDesignRaisedLightButton" >
147
- LIGHT
147
+ _LIGHT
148
148
</Button >
149
149
<Button Style =" {StaticResource MaterialDesignRaisedButton}" Margin =" 0 0 8 0" Width =" 100"
150
150
ToolTip =" Resource name: MaterialDesignRaisedButton" >
151
- MID
151
+ _MID
152
152
</Button >
153
153
<Button Style =" {StaticResource MaterialDesignRaisedDarkButton}" Margin =" 0 0 8 0" Width =" 100"
154
154
ToolTip =" Resource name: MaterialDesignRaisedLightDarkButton" >
155
- DARK
155
+ _DARK
156
156
</Button >
157
157
<Button Style =" {StaticResource MaterialDesignRaisedAccentButton}" Margin =" 0 0 8 0" Width =" 100"
158
158
ToolTip =" Resource name: MaterialDesignRaisedAccentButton" >
Original file line number Diff line number Diff line change @@ -140,7 +140,25 @@ public double RippleY
140
140
{
141
141
get { return ( double ) GetValue ( RippleYProperty ) ; }
142
142
private set { SetValue ( RippleYPropertyKey , value ) ; }
143
- }
143
+ }
144
+
145
+ /// <summary>
146
+ /// The DependencyProperty for the RecognizesAccessKey property.
147
+ /// Default Value: false
148
+ /// </summary>
149
+ public static readonly DependencyProperty RecognizesAccessKeyProperty =
150
+ DependencyProperty . Register (
151
+ "RecognizesAccessKey" , typeof ( bool ) , typeof ( Ripple ) ,
152
+ new PropertyMetadata ( default ( bool ) ) ) ;
153
+
154
+ /// <summary>
155
+ /// Determine if Ripple should use AccessText in its style
156
+ /// </summary>
157
+ public bool RecognizesAccessKey
158
+ {
159
+ get { return ( bool ) GetValue ( RecognizesAccessKeyProperty ) ; }
160
+ set { SetValue ( RecognizesAccessKeyProperty , value ) ; }
161
+ }
144
162
145
163
public override void OnApplyTemplate ( )
146
164
{
Original file line number Diff line number Diff line change 32
32
<converters : DrawerOffsetConverter x : Key =" DrawerOffsetConverter" />
33
33
34
34
<Style TargetType =" {x:Type local:Ripple}" >
35
+ <Setter Property =" RecognizesAccessKey" Value =" True" />
35
36
<Setter Property =" HorizontalAlignment" Value =" Stretch" />
36
37
<Setter Property =" VerticalAlignment" Value =" Stretch" />
37
38
<Setter Property =" Background" Value =" Transparent" />
133
134
</Ellipse >
134
135
</Canvas >
135
136
<ContentPresenter Content =" {TemplateBinding Content}"
137
+ ContentStringFormat =" {TemplateBinding ContentStringFormat}"
136
138
ContentTemplate =" {TemplateBinding ContentTemplate}"
137
139
ContentTemplateSelector =" {TemplateBinding ContentTemplateSelector}"
138
140
Margin =" {TemplateBinding Padding}"
139
141
HorizontalAlignment =" {TemplateBinding HorizontalContentAlignment}"
140
- VerticalAlignment =" {TemplateBinding VerticalContentAlignment}" />
142
+ VerticalAlignment =" {TemplateBinding VerticalContentAlignment}"
143
+ RecognizesAccessKey =" {TemplateBinding RecognizesAccessKey}"
144
+ SnapsToDevicePixels =" {TemplateBinding SnapsToDevicePixels}" />
141
145
</Grid >
142
146
</ControlTemplate >
143
147
</Setter .Value>
You can’t perform that action at this time.
0 commit comments