FileSavePickerUI.FileNameChanged | filenamechanged event

Applies to Windows and Windows Phone

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.

Syntax


function onFileNameChanged(eventArgs) { /* Your code */ }
 
// addEventListener syntax
fileSavePickerUI.addEventListener("filenamechanged", onFileNameChanged);
fileSavePickerUI.removeEventListener("filenamechanged", onFileNameChanged);
 
- or -

fileSavePickerUI.onfilenamechanged = onFileNameChanged;


Event information

Delegate TypedEventHandler<FileSavePickerUI, Object>

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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Storage.Pickers.Provider
Windows::Storage::Pickers::Provider [C++]

Metadata

Windows.winmd

See also

FileSavePickerUI class
FileSavePickerUI.FileName property

 

 

Show:
© 2014 Microsoft