FileOpenPickerUI.FileRemoved | fileremoved event

Applies to Windows and Windows Phone

Fires when the user removes a file from the list of files that the user has chosen if that file was added by the app that is providing files.


event TypedEventHandler<FileOpenPickerUI, FileRemovedEventArgs>^ FileRemoved {
   Windows::Foundation::EventRegistrationToken add(TypedEventHandler<FileOpenPickerUI, FileRemovedEventArgs>^ value);
   void remove(Windows::Foundation::EventRegistrationToken token);

Event information

Delegate TypedEventHandler<FileOpenPickerUI, FileRemovedEventArgs>


If your app participates in the File Open Picker contract and your app uses the app page that is hosted in the file picker to visually indicate which items the user selects, you should respond to this event. When a fileremoved event fires you should update your app's file picker page to reflect the change. Learn more about responding to this event in fileRemovedEventArgs.


The File picker sample demonstrates how to respond to a fileremoved event handler.

No code example is currently available or this language may not be supported.

Both args and e (in C# and JS respectively) contain a FileRemovedEventArgs object.

For JavaScript, SdkSample.fileRemoved is an app variable that contains a string that used to used to notify the user.

For C#, id is an app variable that gets an identifier for the file and UpdateButtonState is one of the app's helper methods.


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]


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



See also

FileOpenPickerUI class
FileRemovedEventArgs class



© 2015 Microsoft