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

Docking/MDI for WPF Forum

Posted 1 year 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 1 year 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 0681) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.