ContentDialog : ContentControl

Implemented for: WASM, Skia, Mobile

This document lists all properties, methods, and events of ContentDialog that are currently implemented by the Uno Platform. See the WinUI documentation for detailed usage guidelines which all automatically apply to Uno Platform.

To better understand how ContentDialog works, you can use the Uno Gallery.

Implemented properties

Property Supported on
DataTemplate TitleTemplate WASM, Skia, Mobile
object Title WASM, Skia, Mobile
string SecondaryButtonText WASM, Skia, Mobile
Style SecondaryButtonStyle WASM, Skia, Mobile
object SecondaryButtonCommandParameter WASM, Skia, Mobile
string PrimaryButtonText WASM, Skia, Mobile
Style PrimaryButtonStyle WASM, Skia, Mobile
object PrimaryButtonCommandParameter WASM, Skia, Mobile
bool IsSecondaryButtonEnabled WASM, Skia, Mobile
bool IsPrimaryButtonEnabled WASM, Skia, Mobile
bool FullSizeDesired WASM, Skia, Mobile
ContentDialogButton DefaultButton WASM, Skia, Mobile
string CloseButtonText WASM, Skia, Mobile
Style CloseButtonStyle WASM, Skia, Mobile
object CloseButtonCommandParameter WASM, Skia, Mobile
DependencyProperty CloseButtonCommandParameterProperty WASM, Skia, Mobile
DependencyProperty CloseButtonCommandProperty WASM, Skia, Mobile
DependencyProperty CloseButtonStyleProperty WASM, Skia, Mobile
DependencyProperty CloseButtonTextProperty WASM, Skia, Mobile
DependencyProperty DefaultButtonProperty WASM, Skia, Mobile
DependencyProperty FullSizeDesiredProperty WASM, Skia, Mobile
DependencyProperty IsPrimaryButtonEnabledProperty WASM, Skia, Mobile
DependencyProperty IsSecondaryButtonEnabledProperty WASM, Skia, Mobile
DependencyProperty PrimaryButtonCommandParameterProperty WASM, Skia, Mobile
DependencyProperty PrimaryButtonCommandProperty WASM, Skia, Mobile
DependencyProperty PrimaryButtonStyleProperty WASM, Skia, Mobile
DependencyProperty PrimaryButtonTextProperty WASM, Skia, Mobile
DependencyProperty SecondaryButtonCommandParameterProperty WASM, Skia, Mobile
DependencyProperty SecondaryButtonCommandProperty WASM, Skia, Mobile
DependencyProperty SecondaryButtonStyleProperty WASM, Skia, Mobile
DependencyProperty SecondaryButtonTextProperty WASM, Skia, Mobile
DependencyProperty TitleProperty WASM, Skia, Mobile
DependencyProperty TitleTemplateProperty WASM, Skia, Mobile

Implemented methods

Method Supported on
void Hide() WASM, Skia, Mobile
IAsyncOperation ShowAsync() WASM, Skia, Mobile
IAsyncOperation ShowAsync(ContentDialogPlacement) WASM, Skia, Mobile

Implemented events

Event Supported on
TypedEventHandler<ContentDialog, ContentDialogButtonClickEventArgs> CloseButtonClick WASM, Skia, Mobile
TypedEventHandler<ContentDialog, ContentDialogClosedEventArgs> Closed WASM, Skia, Mobile
TypedEventHandler<ContentDialog, ContentDialogClosingEventArgs> Closing WASM, Skia, Mobile
TypedEventHandler<ContentDialog, ContentDialogOpenedEventArgs> Opened WASM, Skia, Mobile
TypedEventHandler<ContentDialog, ContentDialogButtonClickEventArgs> PrimaryButtonClick WASM, Skia, Mobile
TypedEventHandler<ContentDialog, ContentDialogButtonClickEventArgs> SecondaryButtonClick WASM, Skia, Mobile

Below are all properties, methods, and events of ContentDialog that are not currently implemented in Uno.

Not implemented properties

Property Not supported on
DataTemplate TitleTemplate MacOS
object Title MacOS
string SecondaryButtonText MacOS
Style SecondaryButtonStyle MacOS
object SecondaryButtonCommandParameter MacOS
ICommand SecondaryButtonCommand all platforms supported by Uno Platform
string PrimaryButtonText MacOS
Style PrimaryButtonStyle MacOS
object PrimaryButtonCommandParameter MacOS
ICommand PrimaryButtonCommand all platforms supported by Uno Platform
bool IsSecondaryButtonEnabled MacOS
bool IsPrimaryButtonEnabled MacOS
bool FullSizeDesired MacOS
ContentDialogButton DefaultButton MacOS
string CloseButtonText MacOS
Style CloseButtonStyle MacOS
object CloseButtonCommandParameter MacOS
ICommand CloseButtonCommand all platforms supported by Uno Platform
DependencyProperty CloseButtonCommandParameterProperty MacOS
DependencyProperty CloseButtonCommandProperty MacOS
DependencyProperty CloseButtonStyleProperty MacOS
DependencyProperty CloseButtonTextProperty MacOS
DependencyProperty DefaultButtonProperty MacOS
DependencyProperty FullSizeDesiredProperty MacOS
DependencyProperty IsPrimaryButtonEnabledProperty MacOS
DependencyProperty IsSecondaryButtonEnabledProperty MacOS
DependencyProperty PrimaryButtonCommandParameterProperty MacOS
DependencyProperty PrimaryButtonCommandProperty MacOS
DependencyProperty PrimaryButtonStyleProperty MacOS
DependencyProperty PrimaryButtonTextProperty MacOS
DependencyProperty SecondaryButtonCommandParameterProperty MacOS
DependencyProperty SecondaryButtonCommandProperty MacOS
DependencyProperty SecondaryButtonStyleProperty MacOS
DependencyProperty SecondaryButtonTextProperty MacOS
DependencyProperty TitleProperty MacOS
DependencyProperty TitleTemplateProperty MacOS

Not implemented methods

Method Not supported on
void Hide() MacOS
IAsyncOperation ShowAsync() MacOS
IAsyncOperation ShowAsync(ContentDialogPlacement) MacOS

Not implemented events

Event Not supported on
TypedEventHandler<ContentDialog, ContentDialogButtonClickEventArgs> CloseButtonClick MacOS
TypedEventHandler<ContentDialog, ContentDialogClosedEventArgs> Closed MacOS
TypedEventHandler<ContentDialog, ContentDialogClosingEventArgs> Closing MacOS
TypedEventHandler<ContentDialog, ContentDialogOpenedEventArgs> Opened MacOS
TypedEventHandler<ContentDialog, ContentDialogButtonClickEventArgs> PrimaryButtonClick MacOS
TypedEventHandler<ContentDialog, ContentDialogButtonClickEventArgs> SecondaryButtonClick MacOS

Last updated Monday, 14 April 2025 02:07.