Skip to content

Commit 97283c7

Browse files
docs(window): notes on VisibleChanged
1 parent 42fde3f commit 97283c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/window/events.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ You can use the `VisibleChanged` event to get notifications when the user tries
109109
}
110110
````
111111

112+
>note The `VisibleChanged` event will fire when the window is being disposed. At this stage of the framework lifecycle, it cannot know if it is open or not, and so we explicitly close it and free-up the resources it uses.
113+
112114
## StateChanged
113115

114116
You can use the `StateChanged` event to get notifications when the user tries to minimize, maximize or restore the window. You can effectively cancel the event by *not* propagating the new state to the variable the `State` property is bound to.

0 commit comments

Comments
 (0)