Template10.Services.DialogService
1.0.2
dotnet add package Template10.Services.DialogService --version 1.0.2
NuGet\Install-Package Template10.Services.DialogService -Version 1.0.2
<PackageReference Include="Template10.Services.DialogService" Version="1.0.2" />
paket add Template10.Services.DialogService --version 1.0.2
#r "nuget: Template10.Services.DialogService, 1.0.2"
// Install Template10.Services.DialogService as a Cake Addin #addin nuget:?package=Template10.Services.DialogService&version=1.0.2 // Install Template10.Services.DialogService as a Cake Tool #tool nuget:?package=Template10.Services.DialogService&version=1.0.2
DialogService
DialogService
simplifies the common ways of interacting with the UWP ContentDialog
and MessageBox
types. The MessageBoxEx
class provides a simple way of displaying ContentDialog
instances. The DialogService
provides methods to simplify the display of the MessageBoxEx
and the DialogManager
is used to ensure only a single MessageBoxEx
instance is displayed at any one time.
public interface IDialogService
{
Task<IUICommand> ShowAsync(MessageDialog dialog, TimeSpan? timeout = null, CancellationToken? token = null);
Task<ContentDialogResult> ShowAsync(ContentDialog dialog, TimeSpan? timeout = null, CancellationToken? token = null);
Task<MessageBoxResult> AlertAsync(string content, IDialogResourceResolver resolver = null);
Task<MessageBoxResult> AlertAsync(string title, string content, IDialogResourceResolver resolver = null);
Task<MessageBoxResult> PromptAsync(string content, MessageBoxType type = MessageBoxType.YesNo, IDialogResourceResolver resolver = null);
Task<MessageBoxResult> PromptAsync(string title, string content, MessageBoxType type = MessageBoxType.YesNo, IDialogResourceResolver resolver = null);
Task<bool> PromptAsync(string content, MessageBoxType type, MessageBoxResult expected, IDialogResourceResolver resolver = null);
Task<bool> PromptAsync(string title, string content, MessageBoxType type, MessageBoxResult expected, IDialogResourceResolver resolver = null);
}
public interface IMessageBoxEx
{
IDialogResourceResolver Resolver { get; set; }
MessageBoxType Type { get; set; }
string Text { get; set; }
ElementTheme RequestedTheme { get; set; }
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
Universal Windows Platform | uap10.0.16299 is compatible. |
-
UAP 10.0.16299
- Template10.Services.SerializationService (>= 1.0.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Template10.Services.DialogService:
Package | Downloads |
---|---|
Template10.Services.NagService
Handy Nag Service for WinRT. Part of Template 10, a Library of Helpers for UWP. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Template10.Services.DialogService:
Repository | Stars |
---|---|
Windows-XAML/Template10
Making Windows 10 apps great again
|