Update OverlayDialog.cs

DataContext repeated assignment
This commit is contained in:
LUJIAN2020
2024-09-22 10:56:59 +08:00
committed by GitHub
parent 4fdfdee8e2
commit f57b882924

View File

@@ -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<T>();
return item;
}
}
}