FileNameChanged | filenamechanged event

FileSavePickerUI.FileNameChanged | filenamechanged event

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


public:
event TypedEventHandler<FileSavePickerUI, Object>^ FileNameChanged {
   Windows::Foundation::EventRegistrationToken add(TypedEventHandler<FileSavePickerUI, Object>^ value);
   void remove(Windows::Foundation::EventRegistrationToken token);
}

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 (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0 [for Xbox, see UWP features that aren't yet supported on Xbox]

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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:
© 2016 Microsoft