Skip to content

Commit 215c6c4

Browse files
committed
RecognizesAccessKey dependency property
1 parent b97bb13 commit 215c6c4

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

MaterialDesignThemes.Wpf/Ripple.cs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,25 @@ public double RippleY
140140
{
141141
get { return (double)GetValue(RippleYProperty); }
142142
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+
}
144162

145163
public override void OnApplyTemplate()
146164
{

0 commit comments

Comments
 (0)