Jaa


FileSavePickerUI.FileNameChanged Event

Definition

Fired when the user changes the file name in the file name text box or changes the extension in the file type drop-down menu.

// Register
event_token FileNameChanged(TypedEventHandler<FileSavePickerUI, IInspectable const&> const& handler) const;

// Revoke with event_token
void FileNameChanged(event_token const* cookie) const;

// Revoke with event_revoker
FileSavePickerUI::FileNameChanged_revoker FileNameChanged(auto_revoke_t, TypedEventHandler<FileSavePickerUI, IInspectable const&> const& handler) const;
public event TypedEventHandler<FileSavePickerUI,object> FileNameChanged;
function onFileNameChanged(eventArgs) { /* Your code */ }
fileSavePickerUI.addEventListener("filenamechanged", onFileNameChanged);
fileSavePickerUI.removeEventListener("filenamechanged", onFileNameChanged);
- or -
fileSavePickerUI.onfilenamechanged = onFileNameChanged;
Public Custom Event FileNameChanged As TypedEventHandler(Of FileSavePickerUI, Object) 

Event Type

Remarks

In response to this event, your app should get the new file name from the FileName property and check the AllowedFileTypes as these also could have changed.

Register for this event by adding an event listener to the FileSavePickerUI object and assigning a handler function for the event.

Applies to

See also