Question

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

Posted 10 months ago by Avatar Ivan Makarevich

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

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

Thanks.


Comments (1)

Posted 10 months ago by Actipro Software Support - Cleveland, OH, USA

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
Information The latest build of this product (2018.1 build 0674) was released 4 days ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.