ghost1372 / HandyControls

Contains some simple and commonly used WPF controls based on HandyControl
https://ghost1372.github.io/
MIT License
1.1k stars 104 forks source link

[Feature request] Ability to cancel TabItem's Closing event #196

Closed NotroDev closed 1 year ago

NotroDev commented 1 year ago

Is your feature request related to a problem? Please describe. Currently, I don't see any way to stop the hc:TabItem.Closing event from occurring without modifying the control. I would need this to add a confirmation screen to this event.

Describe the solution you'd like Some event handlers can be used with System.ComponentModel.CancelEventArgs argument and be cancelled with e.Cancel = true;. I think it would be great to have the ability to do something like this.

ghost1372 commented 1 year ago

report it in original repo