KAMISHIBAI
Public Member Functions | List of all members
PresentationServiceBase Class Reference
Inheritance diagram for PresentationServiceBase:
IPresentationServiceBase

Public Member Functions

 PresentationServiceBase (IServiceProvider serviceProvider, INavigationFrameProvider navigationFrameProvider, IWindowService windowService)
 
Task< bool > NavigateAsync (Type viewModelType, string frameName="")
 
Task< bool > NavigateAsync< TViewModel > (string frameName="")
 
Task< bool > NavigateAsync< TViewModel > (TViewModel viewModel, string frameName="")
 
Task< bool > NavigateAsync< TViewModel > (Action< TViewModel > init, string frameName="")
 
Task< bool > GoBackAsync (string frameName="")
 
INavigationFrame GetNavigationFrame (string frameName="")
 
Task OpenWindowAsync (Type viewModelType, object? owner=null, OpenWindowOptions? options=null)
 
Task OpenWindowAsync< TViewModel > (object? owner=null, OpenWindowOptions? options=null)
 
Task OpenWindowAsync< TViewModel > (TViewModel viewModel, object? owner=null, OpenWindowOptions? options=null)
 
Task OpenWindowAsync< TViewModel > (Action< TViewModel > init, object? owner=null, OpenWindowOptions? options=null)
 
Task< bool > OpenDialogAsync (Type viewModelType, object? owner=null, OpenDialogOptions? options=null)
 
Task< bool > OpenDialogAsync< TViewModel > (object? owner=null, OpenDialogOptions? options=null)
 
Task< bool > OpenDialogAsync< TViewModel > (TViewModel viewModel, object? owner=null, OpenDialogOptions? options=null)
 
Task< bool > OpenDialogAsync< TViewModel > (Action< TViewModel > init, object? owner=null, OpenDialogOptions? options=null)
 
Task CloseWindowAsync (object? window=null)
 
Task CloseDialogAsync (bool dialogResult, object? window=null)
 
MessageBoxResult ShowMessage (string messageBoxText, string caption="", MessageBoxButton button=MessageBoxButton.OK, MessageBoxImage icon=MessageBoxImage.None, MessageBoxResult defaultResult=MessageBoxResult.None, MessageBoxOptions options=MessageBoxOptions.None, object? owner=null)
 
DialogResult OpenFile (OpenFileDialogContext context)
 
DialogResult SaveFile (SaveFileDialogContext context)
 
Task< bool > NavigateAsync (Type viewModelType, string frameName="")
 
Task< bool > NavigateAsync< TViewModel > (string frameName="")
 
Task< bool > NavigateAsync< TViewModel > (TViewModel viewModel, string frameName="")
 
Task< bool > NavigateAsync< TViewModel > (Action< TViewModel > init, string frameName="")
 
Task< bool > GoBackAsync (string frameName="")
 
bool CanGoBack (string frameName="")
 
INavigationFrame GetNavigationFrame (string frameName="")
 
Task OpenWindowAsync (Type viewModelType, object? owner=null, OpenWindowOptions? options=null)
 
Task OpenWindowAsync< TViewModel > (object? owner=null, OpenWindowOptions? options=null)
 
Task OpenWindowAsync< TViewModel > (TViewModel viewModel, object? owner=null, OpenWindowOptions? options=null)
 
Task OpenWindowAsync< TViewModel > (Action< TViewModel > init, object? owner=null, OpenWindowOptions? options=null)
 
Task CloseWindowAsync (object? window=null)
 
Task< bool > OpenDialogAsync (Type viewModelType, object? owner=null, OpenDialogOptions? options=null)
 
Task< bool > OpenDialogAsync< TViewModel > (object? owner=null, OpenDialogOptions? options=null)
 
Task< bool > OpenDialogAsync< TViewModel > (TViewModel viewModel, object? owner=null, OpenDialogOptions? options=null)
 
Task< bool > OpenDialogAsync< TViewModel > (Action< TViewModel > init, object? owner=null, OpenDialogOptions? options=null)
 
Task CloseDialogAsync (bool dialogResult, object? window=null)
 
MessageBoxResult ShowMessage (string messageBoxText, string caption="", MessageBoxButton button=MessageBoxButton.OK, MessageBoxImage icon=MessageBoxImage.None, MessageBoxResult defaultResult=MessageBoxResult.None, MessageBoxOptions options=MessageBoxOptions.None, object? owner=null)
 
DialogResult OpenFile (OpenFileDialogContext context)
 
DialogResult SaveFile (SaveFileDialogContext context)
 

Member Function Documentation

◆ CloseDialogAsync()

Task PresentationServiceBase.CloseDialogAsync ( bool  dialogResult,
object?  window = null 
)

◆ CloseWindowAsync()

Task PresentationServiceBase.CloseWindowAsync ( object?  window = null)

◆ GetNavigationFrame()

INavigationFrame PresentationServiceBase.GetNavigationFrame ( string  frameName = "")

◆ GoBackAsync()

Task< bool > PresentationServiceBase.GoBackAsync ( string  frameName = "")
inline

◆ NavigateAsync()

Task< bool > PresentationServiceBase.NavigateAsync ( Type  viewModelType,
string  frameName = "" 
)
inline

◆ NavigateAsync< TViewModel >() [1/3]

Task< bool > PresentationServiceBase.NavigateAsync< TViewModel > ( Action< TViewModel >  init,
string  frameName = "" 
)
inline

Implements IPresentationServiceBase.

Type Constraints
TViewModel :class 

◆ NavigateAsync< TViewModel >() [2/3]

Task< bool > PresentationServiceBase.NavigateAsync< TViewModel > ( string  frameName = "")
inline

Implements IPresentationServiceBase.

Type Constraints
TViewModel :class 

◆ NavigateAsync< TViewModel >() [3/3]

Task< bool > PresentationServiceBase.NavigateAsync< TViewModel > ( TViewModel  viewModel,
string  frameName = "" 
)
inline

Implements IPresentationServiceBase.

Type Constraints
TViewModel :class 

◆ OpenDialogAsync()

Task< bool > PresentationServiceBase.OpenDialogAsync ( Type  viewModelType,
object?  owner = null,
OpenDialogOptions options = null 
)

◆ OpenDialogAsync< TViewModel >() [1/3]

Task< bool > PresentationServiceBase.OpenDialogAsync< TViewModel > ( Action< TViewModel >  init,
object?  owner = null,
OpenDialogOptions options = null 
)

◆ OpenDialogAsync< TViewModel >() [2/3]

Task< bool > PresentationServiceBase.OpenDialogAsync< TViewModel > ( object?  owner = null,
OpenDialogOptions options = null 
)

◆ OpenDialogAsync< TViewModel >() [3/3]

Task< bool > PresentationServiceBase.OpenDialogAsync< TViewModel > ( TViewModel  viewModel,
object?  owner = null,
OpenDialogOptions options = null 
)

Implements IPresentationServiceBase.

Type Constraints
TViewModel :notnull 
TViewModel :_windowService.OpenDialogAsync 
TViewModel :viewModel 
TViewModel :owner 
TViewModel :options 
TViewModel :new 
TViewModel :OpenDialogOptions() 

◆ OpenFile()

DialogResult PresentationServiceBase.OpenFile ( OpenFileDialogContext  context)

◆ OpenWindowAsync()

Task PresentationServiceBase.OpenWindowAsync ( Type  viewModelType,
object?  owner = null,
OpenWindowOptions options = null 
)

◆ OpenWindowAsync< TViewModel >() [1/3]

Task PresentationServiceBase.OpenWindowAsync< TViewModel > ( Action< TViewModel >  init,
object?  owner = null,
OpenWindowOptions options = null 
)

◆ OpenWindowAsync< TViewModel >() [2/3]

Task PresentationServiceBase.OpenWindowAsync< TViewModel > ( object?  owner = null,
OpenWindowOptions options = null 
)

◆ OpenWindowAsync< TViewModel >() [3/3]

Task PresentationServiceBase.OpenWindowAsync< TViewModel > ( TViewModel  viewModel,
object?  owner = null,
OpenWindowOptions options = null 
)

Implements IPresentationServiceBase.

Type Constraints
TViewModel :notnull 
TViewModel :_windowService.OpenWindowAsync 
TViewModel :viewModel 
TViewModel :owner 
TViewModel :options 
TViewModel :new 
TViewModel :OpenWindowOptions() 

◆ SaveFile()

DialogResult PresentationServiceBase.SaveFile ( SaveFileDialogContext  context)

◆ ShowMessage()

MessageBoxResult PresentationServiceBase.ShowMessage ( string  messageBoxText,
string  caption = "",
MessageBoxButton  button = MessageBoxButton.OK,
MessageBoxImage  icon = MessageBoxImage.None,
MessageBoxResult  defaultResult = MessageBoxResult.None,
MessageBoxOptions  options = MessageBoxOptions.None,
object?  owner = null 
)

The documentation for this class was generated from the following file: