Window: PreviewClosed event is called twice when the Cancel property is set to true and the window is shown using ShowDialog() method
PreviewClosed event is called twice when using custom close button in DialogWindow
Dinko | Tech Support Engineer
Posted on:10 Feb 2021 13:39
After investigating this behavior it turns out that this comes from the framework. It can be easily reproduced with MS Window. The Closing() event will be called twice when we set the e.Cancel property from the event arguments to True. This is in a case when the Window is shown using the ShowDialog() method.
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.