ContentDialog クラス

ContentDialog クラス (Microsoft.UI.Xaml.Controls 名前空間)

[APIドキュメント]

public class ContentDialog : ContentControl

継承:Object → DependencyObject → UIElement → FrameworkElement → Control → ContentControl → ContentDialog
コンテントプロパティ:Content

プロパティ

CloseButtonCommand

@ [APIドキュメント]

public ICommand CloseButtonCommand { get; set; }

CloseButtonText

@ [APIドキュメント]

public string CloseButtonText { get; set; }

PrimaryButtonCommand

@ [APIドキュメント]

public ICommand PrimaryButtonCommand { get; set; }

PrimaryButtonText

@ [APIドキュメント]

public string PrimaryButtonText { get; set; }

SecondaryButtonCommand

@ [APIドキュメント]

public ICommand SecondaryButtonCommand { get; set; }

SecondaryButtonText

@ [APIドキュメント]

public string SecondaryButtonText { get; set; }

Title

@ [APIドキュメント]

public object Title { get; set; }

メソッド

ShowAsync

@ [APIドキュメント]

public IAsyncOperation<ContentDialogResult> ShowAsync();
public IAsyncOperation<ContentDialogResult> ShowAsync(ContentDialogPlacement placement);

イベント

CloseButtonClick

@ [APIドキュメント]

public event TypedEventHandler<ContentDialog,ContentDialogButtonClickEventArgs> CloseButtonClick;

PrimaryButtonClick

@ [APIドキュメント]

public event TypedEventHandler<ContentDialog,ContentDialogButtonClickEventArgs> PrimaryButtonClick;

SecondaryButtonClick

@ [APIドキュメント]

public event TypedEventHandler<ContentDialog,ContentDialogButtonClickEventArgs> SecondaryButtonClick;