DialogCommand - disposes window.DataContext on close by default

This commit is contained in:
John Colvin committed 2019-01-31 19:33:00 -06:00
1 parent db48fb9140
commit bdf3c79147
1 file changed
+1 -1
@@ -67,7 +67,7 @@ namespace mbts.ui
public class DialogCommand : DialogCommand<object, Window>
{
public DialogCommand(Func<Window> factory) : base(_ => factory()) { }
public DialogCommand(Func<Window> factory, int off_x, int off_y) : base(_ => factory(), _ => true, false, off_x, off_y) { }
public DialogCommand(Func<Window> factory, int off_x, int off_y) : base(_ => factory(), _ => true, true, off_x, off_y) { }
public DialogCommand(Func<Window> factory, Func<bool> can_execute) : base(_ => factory(), _ => can_execute()) { }
public DialogCommand(Func<Window> factory, Func<bool> can_execute, bool try_dispose_vm_on_close) : base(_ => factory(), _ => can_execute(), try_dispose_vm_on_close) { }
public DialogCommand(Func<Window> factory, Func<bool> can_execute, bool try_dispose_vm_on_close, int off_x, int off_y) : base(_ => factory(), _ => can_execute(), try_dispose_vm_on_close, off_x, off_y) { }