Skip to content

Commit

Permalink
Merge pull request #2692 from cwensley/curtis/wpf-avoid-datagrid-hang
Browse files Browse the repository at this point in the history
Wpf: Fix issue that could cause an endless loop with Tree/GridView
  • Loading branch information
cwensley authored Oct 11, 2024
2 parents fa2ca49 + 39444a6 commit 66d5838
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Eto.Wpf/themes/controls/DataGrid.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
xmlns:themes="clr-namespace:Xceed.Wpf.Toolkit.Themes;assembly=Xceed.Wpf.Toolkit"
xmlns:local="clr-namespace:Xceed.Wpf.Toolkit;assembly=Xceed.Wpf.Toolkit">

<Style TargetType="DataGridRowsPresenter">
<!-- Avoid endless loop in WPF due to the following:
https://github.com/dotnet/wpf/issues/9944
-->
<Setter Property="UseLayoutRounding" Value="False"/>
</Style>

<Style TargetType="efc:EtoDataGrid">
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
</Style>
Expand Down

0 comments on commit 66d5838

Please sign in to comment.