avalonia-docs icon indicating copy to clipboard operation
avalonia-docs copied to clipboard

The window documentation should have an example of `Design.IsDesignMode`.

Open VladiStep opened this issue 1 year ago • 1 comments

Hello. I have started to use AvaloniaUI only recently, and I discovered that the design preview triggers the window events, in my case it's the Closing event. I made this issue, but it turns out that it's by design, and you should use Design.IsDesignMode.

I think the window documentation (if to be precise, the "Prevent a window from closing" part) should state that there is the variable, because I didn't know about it until I made the issue.

VladiStep avatar Nov 22 '23 13:11 VladiStep

Your PR is welcome.

timunie avatar Nov 22 '23 14:11 timunie