Class MessageService
public class MessageService : IMessageService
- Inheritance
-
MessageService
- Implements
- Inherited Members
- Extension Methods
Methods
BeginDefaultBlurEffect(bool)
检查显示主窗口模糊效果
public void BeginDefaultBlurEffect(bool isuse)
Parameters
isuse
bool
IsOpened()
public bool IsOpened()
Returns
ShowDialog<T>(UIElement, Action<object, RoutedEventArgs>)
显示自定义窗口
public Task<T> ShowDialog<T>(UIElement element, Action<object, RoutedEventArgs> action = null)
Parameters
element
UIElementaction
Action<object, RoutedEventArgs>
Returns
- Task<T>
Type Parameters
T
ShowPercentProgress(Action<IPercentProgress>, Action)
public Task ShowPercentProgress(Action<IPercentProgress> action, Action closeAction = null)
Parameters
action
Action<IPercentProgress>closeAction
Action
Returns
ShowPercentProgress<T>(Func<IPercentProgress, T>, Action)
public Task<T> ShowPercentProgress<T>(Func<IPercentProgress, T> action, Action closeAction = null)
Parameters
action
Func<IPercentProgress, T>closeAction
Action
Returns
- Task<T>
Type Parameters
T
ShowProgress<T, R>(Func<T, R>, Action)
public Task<R> ShowProgress<T, R>(Func<T, R> action, Action closeAction = null) where T : new()
Parameters
Returns
- Task<R>
Type Parameters
T
R
ShowResult(string)
public Task<bool> ShowResult(string message)
Parameters
message
string
Returns
ShowResult(string, Action<object, RoutedEventArgs>)
public Task ShowResult(string message, Action<object, RoutedEventArgs> action)
Parameters
message
stringaction
Action<object, RoutedEventArgs>
Returns
ShowStringProgress(Action<IStringProgress>, Action)
进度消息
public Task ShowStringProgress(Action<IStringProgress> action, Action closeAction = null)
Parameters
action
Action<IStringProgress>closeAction
Action
Returns
ShowStringProgress<T>(Func<IStringProgress, T>, Action)
带有结果的进度消息
public Task<T> ShowStringProgress<T>(Func<IStringProgress, T> action, Action closeAction = null)
Parameters
action
Func<IStringProgress, T>closeAction
Action
Returns
- Task<T>
Type Parameters
T
ShowSumit(string, bool)
public Task ShowSumit(string message, bool isLog = true)
Parameters
Returns
ShowWaitter(Action, Action)
public Task ShowWaitter(Action action, Action closeAction = null)
Parameters
Returns
ShowWaitter<T>(Func<T>)
带有返回结果的等待消息窗口
public Task<T> ShowWaitter<T>(Func<T> action)
Parameters
action
Func<T>
Returns
- Task<T>
Type Parameters
T