Quantcast
Channel: Caliburn.Micro: Xaml Made Easy
Viewing all articles
Browse latest Browse all 1760

New Post: Error when closing a dialog

$
0
0
I have this function inside my mainview model, and want to fire up a login dialog.
The dialog commes up but when i close the dialog again from cancel or ok modal result i got a leak error.
Any sugestions
procedure TMyMainViewModel.ShowLoginDialog;
begin
WinMan := IoC.Get<IWindowManager>();
if WinMan.ShowDialog(Ioc.Get<ILoginViewModel>()) = mrCancel then
begin

end;
end;

Viewing all articles
Browse latest Browse all 1760

Trending Articles