Table of Contents

Class DefaultDialogService

Namespace
UraniumUI.Dialogs
Assembly
UraniumUI.dll
public class DefaultDialogService : IDialogService
Inheritance
DefaultDialogService
Implements
Inherited Members

Constructors

DefaultDialogService(IOptions<DialogOptions>)

public DefaultDialogService(IOptions<DialogOptions> options)

Parameters

options IOptions<DialogOptions>

Properties

DialogOptions

public DialogOptions DialogOptions { get; }

Property Value

DialogOptions

Page

public Page Page { get; set; }

Property Value

Page

Methods

ConfigurePopupPage(DefaultDialogAnimatedContentPage)

protected virtual Page ConfigurePopupPage(DefaultDialogAnimatedContentPage popupPage)

Parameters

popupPage DefaultDialogAnimatedContentPage

Returns

Page

ConfirmAsync(string, string, string, string)

public Task<bool> ConfirmAsync(string title, string message, string okText = "OK", string cancelText = "Cancel")

Parameters

title string
message string
okText string
cancelText string

Returns

Task<bool>

DisplayCheckBoxPromptAsync<T>(string, IEnumerable<T>, IEnumerable<T>, string, string, string)

public virtual Task<IEnumerable<T>> DisplayCheckBoxPromptAsync<T>(string message, IEnumerable<T> selectionSource, IEnumerable<T> selectedItems = null, string accept = "OK", string cancel = "Cancel", string displayMember = null)

Parameters

message string
selectionSource IEnumerable<T>
selectedItems IEnumerable<T>
accept string
cancel string
displayMember string

Returns

Task<IEnumerable<T>>

Type Parameters

T

DisplayFormViewAsync<TViewModel>(string, TViewModel, string, string)

public Task<TViewModel> DisplayFormViewAsync<TViewModel>(string title, TViewModel viewModel = null, string submit = "OK", string cancel = "Cancel") where TViewModel : class

Parameters

title string
viewModel TViewModel
submit string
cancel string

Returns

Task<TViewModel>

Type Parameters

TViewModel

DisplayProgressAsync(string, string)

public Task<IDisposable> DisplayProgressAsync(string title, string message)

Parameters

title string
message string

Returns

Task<IDisposable>

DisplayProgressCancellableAsync(string, string, string, CancellationTokenSource)

public Task<IDisposable> DisplayProgressCancellableAsync(string title, string message, string cancelText = "Cancel", CancellationTokenSource tokenSource = null)

Parameters

title string
message string
cancelText string
tokenSource CancellationTokenSource

Returns

Task<IDisposable>

DisplayRadioButtonPromptAsync<T>(string, IEnumerable<T>, T, string, string, string)

public Task<T> DisplayRadioButtonPromptAsync<T>(string message, IEnumerable<T> selectionSource, T selected = default, string accept = "Ok", string cancel = "Cancel", string displayMember = null)

Parameters

message string
selectionSource IEnumerable<T>
selected T
accept string
cancel string
displayMember string

Returns

Task<T>

Type Parameters

T

DisplayTextPromptAsync(string, string, string, string, string, int, Keyboard, string, bool)

public Task<string> DisplayTextPromptAsync(string title, string message, string accept = "OK", string cancel = "Cancel", string placeholder = null, int maxLength = -1, Keyboard keyboard = null, string initialValue = "", bool isPassword = false)

Parameters

title string
message string
accept string
cancel string
placeholder string
maxLength int
keyboard Keyboard
initialValue string
isPassword bool

Returns

Task<string>

DisplayViewAsync(string, View, string)

public Task DisplayViewAsync(string title, View content, string okText = "OK")

Parameters

title string
content View
okText string

Returns

Task

GetBackdropColor()

protected virtual Color GetBackdropColor()

Returns

Color

GetCurrentPage()

protected virtual Page GetCurrentPage()

Returns

Page

GetDivider()

protected virtual View GetDivider()

Returns

View

GetFooter(Dictionary<string, Command>)

protected virtual View GetFooter(Dictionary<string, Command> footerButtons)

Parameters

footerButtons Dictionary<string, Command>

Returns

View

GetFrame(double, View)

protected virtual View GetFrame(double width, View content)

Parameters

width double
content View

Returns

View

GetHeader(string)

protected virtual View GetHeader(string title)

Parameters

title string

Returns

View

WithPage(Page)

public DefaultDialogService WithPage(Page page)

Parameters

page Page

Returns

DefaultDialogService