Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Commit 13d6b14

Browse files
Merge pull request #41 from giard-alexandre/fix/modal-inherit-theme
fix: pass theme to modal
2 parents 7cb3b0b + bf916b2 commit 13d6b14

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/DynamicTreeDataGrid/DynamicTreeDataGrid.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ public class DynamicTreeDataGrid : TreeDataGrid {
2222
public void ShowColumnEditor() {
2323
var columnsWindow = new ColumnEditorWindow { DataContext = Source?.Columns };
2424
var topLevel = TopLevel.GetTopLevel(this);
25-
if (topLevel is Window window) columnsWindow.ShowDialog(window);
25+
if (topLevel is not Window window) return;
26+
27+
columnsWindow.RequestedThemeVariant = topLevel.RequestedThemeVariant;
28+
columnsWindow.ShowDialog(window);
2629
}
2730
}

0 commit comments

Comments
 (0)