Skip to content

Commit ad2cff3

Browse files
Ensure InteractionEllipse is not hit test visible (#3390)
The interaction ellipse is used to provide visual feedback to the user when the radio button is being checked. However, it remains in the "large" state and since it was hit test visible, it captured mouse clicks outside of the bounds of the control, causing the radio button to be checked when it should not.
1 parent 29100b6 commit ad2cff3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.RadioButton.xaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
<Ellipse x:Name="InteractionEllipse"
8989
Canvas.Left="12"
9090
Canvas.Top="12"
91+
IsHitTestVisible="False"
9192
Width="0"
9293
Height="0"
9394
Fill="{TemplateBinding Foreground}"
@@ -220,6 +221,7 @@
220221
<Ellipse x:Name="InteractionEllipse"
221222
Canvas.Left="12"
222223
Canvas.Top="12"
224+
IsHitTestVisible="False"
223225
Width="0"
224226
Height="0"
225227
Fill="{TemplateBinding Foreground}"

0 commit comments

Comments
 (0)