Interface IDialogService
- Namespace
- UraniumUI.Dialogs
- Assembly
- UraniumUI.dll
public interface IDialogService
Methods
ConfirmAsync(string, string, string, string)
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)
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
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)
Task<IDisposable> DisplayProgressAsync(string title, string message)
Parameters
title
string
message
string
Returns
- Task<IDisposable>
DisplayProgressCancellableAsync(string, string, string, CancellationTokenSource)
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>
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)
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)
Task DisplayViewAsync(string title, View content, string okText = "OK")
Parameters
title
string
content
View
okText
string
Returns
- Task