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また、チャームを設定して開くのと同じ設定フライアウトを開くボタンを作成する方法がわかりません。私の質問は次のとおりです。はい、一種のヒントが必要な場合、それを作成することは可能ですか。

4

1 に答える 1