NotesWindowManagerPreview.NoteVisibilityChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates that a note's visibility state has changed.
Note
When this event is raised, its handler must determine whether the given view was hidden or shown (according to the isVisible property in NoteVisibilityChangedPreviewEventArgs class). If hidden, the note's CoreWindow object must be closed (with the Close method) within the event handler.
// Register
event_token NoteVisibilityChanged(TypedEventHandler<NotesWindowManagerPreview, NoteVisibilityChangedPreviewEventArgs const&> const& handler) const;
// Revoke with event_token
void NoteVisibilityChanged(event_token const* cookie) const;
// Revoke with event_revoker
NotesWindowManagerPreview::NoteVisibilityChanged_revoker NoteVisibilityChanged(auto_revoke_t, TypedEventHandler<NotesWindowManagerPreview, NoteVisibilityChangedPreviewEventArgs const&> const& handler) const;
public event TypedEventHandler<NotesWindowManagerPreview,NoteVisibilityChangedPreviewEventArgs> NoteVisibilityChanged;
function onNoteVisibilityChanged(eventArgs) { /* Your code */ }
notesWindowManagerPreview.addEventListener("notevisibilitychanged", onNoteVisibilityChanged);
notesWindowManagerPreview.removeEventListener("notevisibilitychanged", onNoteVisibilityChanged);
- or -
notesWindowManagerPreview.onnotevisibilitychanged = onNoteVisibilityChanged;
Public Custom Event NoteVisibilityChanged As TypedEventHandler(Of NotesWindowManagerPreview, NoteVisibilityChangedPreviewEventArgs)