These are chat archives for punker76/MahApps.Metro.SimpleChildWindow

28th
Jan 2016
Jon Alza
@jonny123d
Jan 28 2016 09:10
Hello @punker76 , when ChildWindows is loaded, is it normal that ChildWindow.Loaded event is raised each time MessageDialog is opened and closed?
Jan Karger
@punker76
Jan 28 2016 09:30
@jonny123d it's also fireing on closed?
Jon Alza
@jonny123d
Jan 28 2016 09:41
@punker76 yes, but when the MessageDialog is closed (no when the ChildWindow is closed)
Jan Karger
@punker76
Jan 28 2016 09:43
@jonny123d you mean message dialog from mahapps?
why do you need th eloaded event?
Jon Alza
@jonny123d
Jan 28 2016 09:43
@punker76 This is the situation: I show a ChildWindow, and while this ChildWindow is opened I show some MessageDialog (with MetroWindow's ShowMessageAsync() method). When one MessageDialog is opend or closed, ChildWindow's Loaded event is fired.
Jon Alza
@jonny123d
Jan 28 2016 09:50
In my own project I have to do some communication processes, one of them starts when especific ChildWindow is opened. During the communication process is posible to show a MessageDialog (if some data frame are arreived). So this communication process starts each time a MessageDialog is opened or closed. This is not the spected behavior by me, I think Loaded event would fired only on time, isn't it?
@punker76
Jan Karger
@punker76
Jan 28 2016 09:52
@jonny123d loaded event can fire more than once, cause if you open a message dialog the child window is moving from one grid to another (active to inactive), so the loaded event is maybe fired by this action
@jonny123d maybe it's better you use the IsOpenChangedEvent
Jon Alza
@jonny123d
Jan 28 2016 09:55
@punker76 Ok, thank you, i will check this event
Jan Karger
@punker76
Jan 28 2016 09:58
@jonny123d let me know if it works or not
Jon Alza
@jonny123d
Jan 28 2016 10:24
@punker76 It seems that it works, thak you again!
Jan Karger
@punker76
Jan 28 2016 10:30
@jonny123d :+1: