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

Docking/MDI for WPF Forum

Posted 6 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 6 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 (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.