ContentDialogService class¶
Defined in
Namespace: CrissCross.WPF.UI
Assembly: CrissCross.WPF.UI.dll
Full name: CrissCross.WPF.UI.ContentDialogService
Modifiers: public
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
Class hierarchy
classDiagram
class ContentDialogService
class IContentDialogService {
<>
}
IContentDialogService <|.. ContentDialogService
Implements: IContentDialogService
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"
}
);
Constructors¶
| Name | Summary |
|---|---|
| .ctor |
Methods¶
| Name | Summary |
|---|---|
| SetContentPresenter | Sets the ContentPresenter. |
| GetContentPresenter | Provides direct access to the ContentPresenter. |
| ShowAsync | Asynchronously shows the specified dialog. |