I created a custom AlarmSettingsPane in the settings, which allows the user to specify the time, as well as select a sound file for the alarm. Thus, I implemented the file collector in the charm settings. When I click the file selection button, it brings me to a new full-screen mode where I can select files, but when I select a file and open it, I am directed to the main screen but the settings pop-up window closes. How can I save the state of the AlarmSettingsPane popup and prevent it from closing programmatically? Like the settings, the popup should contain the same alarm message as it was before I selected the file.
SettingsPane.Show () opens the settings spell, but does not proceed to configure the alarm created inside the standard settings pop-up window.
Please let me know if you go at all. Thanks
here is my code for the file select button by clicking the button
private async void PickAFileButton_Click(object sender, RoutedEventArgs e) { FileOpenPicker openPicker = new FileOpenPicker(); openPicker.ViewMode = PickerViewMode.List; openPicker.SuggestedStartLocation = PickerLocationId.MusicLibrary; openPicker.FileTypeFilter.Add(".mp3"); openPicker.FileTypeFilter.Add(".wma"); StorageFile file = await openPicker.PickSingleFileAsync(); if (file != null) {
source share