How to show "confirmation MessageBox" on ToolWindow closing? (MVVM-compatible)

Docking/MDI for WPF Forum

Posted 2 years ago by Ivan Makarevich
Version: 17.2.0664
Avatar

How to show "confirmation MessageBox" on ToolWindow closing? (MVVM-compatible)

<Setter Property="IsOpen" Value="{Binding Path=IsOpen, Mode=TwoWay}" />

Thanks.

Comments (1)

Posted 2 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

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.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) was released 13 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.