IContentDialogService interface¶
Defined in
Namespace: CrissCross.WPF.UI
Assembly: CrissCross.WPF.UI.dll
Full name: CrissCross.WPF.UI.IContentDialogService
Modifiers: public abstract
Summary¶
Represents a contract with the service that creates ContentDialog.
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481
Examples¶
<ContentPresenter x:Name="RootContentDialogPresenter" Grid.Row="0" />
IContentDialogService contentDialogService = new ContentDialogService();
contentDialogService.SetContentPresenter(RootContentDialogPresenter);
await _contentDialogService.ShowAsync(
new ContentDialog(){
Title = "CrissCross Dialog?",
Content = "Async Dialog!",
PrimaryButtonText = "Save",
SecondaryButtonText = "Don't Save",
CloseButtonText = "Cancel"
}
);
Methods¶
| Name | Summary |
|---|---|
| SetContentPresenter | Sets the ContentPresenter. |
| GetContentPresenter | Provides direct access to the ContentPresenter. |
| ShowAsync | Asynchronously shows the specified dialog. |