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

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -