c# - How can I observe changes in the AllowedFileTypes of FileSavePickerUI? -


when register app file-save picker, filesavepickeractivatedeventargs in app.xaml.cs:

protected override void onfilesavepickeractivated(filesavepickeractivatedeventargs e) {    var filter = e.filesavepickerui.allowedfiletypes; // ireadonlylist<string> } 

when user selects different set of file-types:

enter image description here

how notification collection changed? filesavepickerui.allowedfiletypes not observable. there trick?

@methodman, in windows store apps can register app filesavepicker, allows show option when other apps want "save as...". ui contains app outside control, drop down "save type" (look @ photo above). drop down contains values filesavepickerui.allowedfiletypes. when user changes selection, need notification. except... can't. can't seem find way observe change.


looks there's bug in windows 10 of (oct 2015) filenamechanged event not fire when type changed. seems work in windows 8.

the filenamechanged event documented being raised whenever file type changes.


Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -