MahApps.Metro.SimpleChildWindow icon indicating copy to clipboard operation
MahApps.Metro.SimpleChildWindow copied to clipboard

Loaded event called twice?

Open Josrph opened this issue 4 years ago • 0 comments

when calling ShowChildWindowAsync() my ContentControl Loaded event gets called twice ... it does not suppose to do that.

var view = new ContentControl();
view.Loaded += (s, arg) => 
{
	// gets called twice ???
};

var childWindow = new ChildWindow()
{
	ChildWindowWidth = 400,
	ChildWindowHeight = 300,
	ShowCloseButton = true,
	IsOpen = true,
	IsModal = true,
	Content = view,
};
await App.Current.MainWindow.ShowChildWindowAsync(childWindow);

PS: am using SimpleChildWindow version 1.5 with MahApps 1.6.5

Josrph avatar Sep 22 '20 07:09 Josrph