How to show "confirmation MessageBox" on ToolWindow closing? (MVVM-compatible)
<Setter Property="IsOpen" Value="{Binding Path=IsOpen, Mode=TwoWay}" />
Thanks.
How to show "confirmation MessageBox" on ToolWindow closing? (MVVM-compatible)
<Setter Property="IsOpen" Value="{Binding Path=IsOpen, Mode=TwoWay}" />
Thanks.
Hi Ivan,
Any kind of confirmation MessageBox needs to be displayed in a DockSite.WindowsClosing event handler, since that is the event that lets you access the windows being closed (via event args) so you can display a UI and the subsequently cancel the close if needed.
Please log in to a validated account to post comments.