Class WpfApplicationExtensions
- Namespace
- Tudormobile.Wpf
- Assembly
- Tudormobile.WpfApp.dll
Extensions methods for WpfApplication.
These methods provide convienience methods for configuring the WpfApplication instance in your OnConfigureServices override method as well as other common tasks.
public static class WpfApplicationExtensions
- Inheritance
-
WpfApplicationExtensions
- Inherited Members
Methods
UseDialogService(IServiceCollection)
Adds the default implementation of IDialogService to the service collection.
public static IServiceCollection UseDialogService(this IServiceCollection services)
Parameters
services
IServiceCollectionThe IServiceCollection to which the service will be added.
Returns
- IServiceCollection
The updated IServiceCollection instance.
Remarks
This method registers Tudormobile.Wpf.Services.DialogService as a singleton implementation of IHelpService.
UseHelpService(IServiceCollection)
Adds the default implementation of IHelpService to the service collection.
public static IServiceCollection UseHelpService(this IServiceCollection services)
Parameters
services
IServiceCollectionThe IServiceCollection to which the service will be added.
Returns
- IServiceCollection
The updated IServiceCollection instance.
Remarks
This method registers Tudormobile.Wpf.Services.HelpService as a singleton implementation of IHelpService.
UsePrintService(IServiceCollection)
Adds the default implementation of IPrintService to the service collection.
public static IServiceCollection UsePrintService(this IServiceCollection services)
Parameters
services
IServiceCollectionThe IServiceCollection to which the service will be added.
Returns
- IServiceCollection
The updated IServiceCollection instance.
Remarks
This method registers Tudormobile.Wpf.Services.PrintService as a singleton implementation of IPrintService.
UseWindowService(IServiceCollection)
Adds the default implementation of IWindowService to the service collection.
public static IServiceCollection UseWindowService(this IServiceCollection services)
Parameters
services
IServiceCollectionThe IServiceCollection to which the service will be added.
Returns
- IServiceCollection
The updated IServiceCollection instance.
Remarks
This method registers Tudormobile.Wpf.Services.WindowService as a singleton implementation of IWindowService.