0
通過使用Callisto
我寫了一個代碼,添加設置魅力。如何通過使用按鈕而不是設置魅力顯示設置彈出窗口
下方附上一個:
// Register handler for CommandsRequested events from the setting pane
SettingsPane.GetForCurrentView().CommandsRequested += OnCommandsRequested;
void OnCommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)
{
// Add an Adding Feeds command
var add = new SettingsCommand("add", "Add new Feed", (handler) =>
{
var settings = new SettingsFlyout();
settings.Content = new AddingPageUserControl();
settings.HeaderBrush = (SolidColorBrush)Application.Current.Resources["UserControlBackgraund"];
settings.Background = (SolidColorBrush)Application.Current.Resources["UserControlBackgraund"];
settings.HeaderText = "Add new Feed";
settings.IsOpen = true;
});
args.Request.ApplicationCommands.Add(add);
}
而且我不知道如何創建AppBar
一個按鈕,我用設定的魅力將其打開這將打開相同的設置彈出。我的問題是:是否有可能創建它,如果是的話,我需要一種提示。