From f57b8829245817a75a24da2a8d7def6271c54bb3 Mon Sep 17 00:00:00 2001 From: LUJIAN2020 <83105448+LUJIAN2020@users.noreply.github.com> Date: Sun, 22 Sep 2024 10:56:59 +0800 Subject: [PATCH] Update OverlayDialog.cs DataContext repeated assignment --- src/Ursa/Controls/Dialog/OverlayDialog.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ursa/Controls/Dialog/OverlayDialog.cs b/src/Ursa/Controls/Dialog/OverlayDialog.cs index 6f23f97..2b4fe52 100644 --- a/src/Ursa/Controls/Dialog/OverlayDialog.cs +++ b/src/Ursa/Controls/Dialog/OverlayDialog.cs @@ -15,7 +15,7 @@ public static class OverlayDialog if (host is null) return; var t = new DefaultDialogControl() { - Content = new TView(){ DataContext = vm }, + Content = new TView(), DataContext = vm, }; ConfigureDefaultDialogControl(t, options); @@ -241,4 +241,4 @@ public static class OverlayDialog var item = host.Recall(); return item; } -} \ No newline at end of file +}