FileOpenPickerUI.FileRemoved | fileremoved event
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.
Syntax
Public Event FileRemoved As TypedEventHandler(Of FileOpenPickerUI, FileRemovedEventArgs)
Event information
| Delegate | TypedEventHandler(FileOpenPickerUI, FileRemovedEventArgs) |
|---|
Remarks
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.
Examples
The File picker sample demonstrates how to respond to a fileremoved event handler.
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.
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 12/4/2012
