Skip to content

Commit 4c5a4ed

Browse files
committed
Fix #1929
MetroDataGridCheckBox style prevents the CellEditEnding
1 parent 709cf89 commit 4c5a4ed

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docs/release-notes/1.5.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,4 @@
101101
- [#2812](https://github.com/MahApps/MahApps.Metro/issues/2812) Font family in Flyout.xaml and MetroNavigationWindow.xaml
102102
- [#2764](https://github.com/MahApps/MahApps.Metro/issues/2764) Flyout - Border not shown
103103
- [#2515](https://github.com/MahApps/MahApps.Metro/issues/2515) NumericUpDown Value not displayed
104+
- [#1929](https://github.com/MahApps/MahApps.Metro/issues/1929) MetroDataGridCheckBox style prevents the CellEditEnding

src/MahApps.Metro/MahApps.Metro/Styles/Controls.DataGrid.xaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
<Setter Property="Focusable" Value="False" />
2020
<Setter Property="IsHitTestVisible" Value="False" />
2121
</DataTrigger>
22+
<DataTrigger Binding="{Binding Path=IsEditing, RelativeSource={RelativeSource AncestorType=DataGridCell}}" Value="False">
23+
<Setter Property="Focusable" Value="False" />
24+
<Setter Property="IsHitTestVisible" Value="False" />
25+
</DataTrigger>
2226
</Style.Triggers>
2327
</Style>
2428

0 commit comments

Comments
 (0)