The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

XafApplication Methods

Manages an XAF application.

Name Description
AskConfirmation(ConfirmationType)

Requests an end-user confirmation.

BeginInit()

Starts the XafApplication's initialization. Initialization occurs at runtime.

CheckCompatibility()

Checks whether the application and database are compatible, and if not, tries to make them compatible.

CreateCollectionSource(IObjectSpace, Type, String)

Creates a collection source for a specified List View.

CreateCollectionSource(IObjectSpace, Type, String, Boolean, CollectionSourceMode)

Creates a Collection Source for a specific List View.

CreateCollectionSource(IObjectSpace, Type, String, CollectionSourceDataAccessMode, CollectionSourceMode)

Creates a Collection Source for a specific List View.

CreateCollectionSource(IObjectSpace, Type, String, CollectionSourceMode)

Creates a Collection Source for a specific List View.

CreateController<ControllerType>()

Creates a Controller of a specified type. If there is a Controller of the same type, assigns its settings to the new Controller.

CreateDashboardView(IObjectSpace, String, Boolean)

Creates a Dashboard View using information from the Application Model's Views | DashboardView node specified by the dashboardViewID parameter.

CreateDatabaseUpdater(IObjectSpaceProvider)

Creates a Database Updater for a specified Object Space Provider.

CreateDetailView(IObjectSpace, IModelDetailView, Boolean)

Creates a Detail View based on information from the Application Model's Views | DetailView node specified by the modelDetailView parameter.

CreateDetailView(IObjectSpace, IModelDetailView, Boolean, Object)

Creates a Detail View for the specified object with settings from the Application Model's Views | DetailView node specified by the modelDetailView parameter.

CreateDetailView(IObjectSpace, Object)

Creates a Detail View based on information specified in the Application Model for the type of the specified object.

CreateDetailView(IObjectSpace, Object, Boolean)

Creates a DetailView for the specified object and initializes its properties.

CreateDetailView(IObjectSpace, Object, View)

Creates a Detail View for a specified object based on information on the source View.

CreateDetailView(IObjectSpace, String, Boolean)

Creates a Detail View based on information from the Application Model's Views | DetailView node specified by the detailViewID parameter.

CreateDetailView(IObjectSpace, String, Boolean, Object)

Creates a Detail View for the specified object based on the information from the Application Model's Views | DetailView node specified by the detailViewID parameter.

CreateDetailView(IObjectSpace, String, Boolean, Object, Boolean, IEnumerable)

For internal use.

CreateDetailView(Object)

For internal use. We recommend to use the CreateDetailView(IObjectSpace, Object) overload instead.

CreateDetailView(Object, Boolean)

For internal use only. Use the CreateDetailView(IObjectSpace, Object, Boolean) overload instead.

CreateFrame(TemplateContext)

Creates a new Frame.

CreateLayoutManager(Boolean)

Creates a Layout Manager.

CreateListEditor(CollectionSourceBase, IModelListView)

Creates the List Editor which is specified in the appropriate Application Model node.

CreateListView(IModelListView, CollectionSourceBase, Boolean)

Creates a List View based on the information from the Application Model's node specified by the modelListView parameter.

CreateListView(IModelListView, CollectionSourceBase, Boolean, ListEditor)

For internal use.

CreateListView(IObjectSpace, Type, Boolean)

Creates a List View used for the objects of the specified type, by default.

CreateListView(String, CollectionSourceBase, Boolean)

Creates a List View based on information from the Application Model's Views | View node specified by the listViewId parameter.

CreateListView(Type, Boolean)

Creates a List View used for the objects of the specified type, by default.

CreateNestedFrame(ViewItem, TemplateContext)
CreateNestedFrame(ViewItem, TemplateContext, View)
CreateNestedObjectSpace(IObjectSpace)

Creates nested Object Space.

CreateObjectSpace()

Creates an Object Space. Use this method overload if your application registers only one ObjectSpaceProvider.

CreateObjectSpace(Type)

Creates an Object Space that supports a specific object type. Use this method overload if your application registers several ObjectSpaceProviders.

CreatePopupWindow(TemplateContext, String, Boolean, Controller[])

Creates a new pop-up Window.

CreatePopupWindow(TemplateContext, String, Controller[])

Creates a new pop-up Window.

CreatePopupWindow(TemplateContext, String, View, Boolean, Controller[])
CreatePropertyCollectionSource(IObjectSpace, Type, Object, IMemberInfo, String)

Creates a Collection Source for a nested List View that displays a collection property.

CreatePropertyCollectionSource(IObjectSpace, Type, Object, IMemberInfo, String, Boolean, CollectionSourceMode)

Creates a Collection Source for a nested List View that displays a collection property.

CreatePropertyCollectionSource(IObjectSpace, Type, Object, IMemberInfo, String, CollectionSourceDataAccessMode, CollectionSourceMode)

Creates a Collection Source for a nested List View that displays a collection property.

CreatePropertyCollectionSource(IObjectSpace, Type, Object, IMemberInfo, String, CollectionSourceMode)

Creates a Collection Source for a nested List View that displays a collection property.

CreateTemplate(String)

For internal use only.

CreateWindow(TemplateContext, ICollection<Controller>, Boolean)

Creates a new Window.

CreateWindow(TemplateContext, ICollection<Controller>, Boolean, Boolean)

Creates a new Window.

CreateWindow(TemplateContext, ICollection<Controller>, Boolean, Boolean, View)
EndInit()

Ends the XafApplication's initialization.

Exit()

Finishes runing the application.

FindDetailViewId(Object, View)

Returns the ID of the Detail View which must be used for a specific object, when invoked from the source View.

FindDetailViewId(Type)

Returns the ID of the Detail View which is used for objects of a specified type by default.

FindListViewId(Type)

Returns the ID of the List View which is used for objects of a specified type by default.

FindLookupListViewId(Type)

Returnes the ID of the Lookup List View which is used for objects of a specified type by default.

FindModelClass(Type)

Returns the Application Model's IModelClass node representing the specific business class.

FindModelView(String)

Provides access the Application Model node that defines a specified View.

GetCompletedViewShortcut(ViewShortcut)

For internal use only.

GetDetailViewId(Type)

Returns the ID of the Detail View which is used for objects of a specified type by default, and raises an exception if the appropriate View ID is not found.

GetDiffDefaultName(String)

Gets the model differences file name

GetListViewId(Type)

Returns the ID of the List View which is used for objects of a specified type by default, and raises an exception if the appropriate View ID is not found.

GetObjectSpaceToShowDetailViewFrom(Frame, Type)

Returns an Object Space in which a Detail View should be created to be displayed via the ShowViewStrategyBase.ShowView method.

GetObjectSpaceToShowDetailViewFrom(Frame, Type, TargetWindow)

Returns an Object Space in which a Detail View should be created to be displayed via the ShowViewStrategyBase.ShowView method.

GetTemplateCustomizationModel(IFrameTemplate)

Returns the Application Model node where settings of a specified Template are stored.

LogOff()

Performs the application logout.

Logon()

Performs the logon.

ProcessShortcut(ViewShortcut)

Creates a View by a specified shortcut.

SaveModelChanges()

Saves the changes made by an end-user, up to the current moment, to the differences storage.

SetFormattingCulture(String)

Sets the specified formatting culture for the current application.

SetLanguage(String)

Sets the specified language for the current application when called before the application windows are shown.

Setup()

Initializes the newly created XafApplication class instance.

Setup(ExpressApplicationSetupParameters)

Initializes the newly created XafApplication class instance.

Setup(String, IList<IObjectSpaceProvider>, ApplicationModulesManager, ISecurityStrategyBase)

Initializes the newly created XafApplication class instance.

Setup(String, IList<IObjectSpaceProvider>, String[], ISecurityStrategyBase)

Initializes the newly created XafApplication class instance.

Setup(String, IObjectSpaceProvider)

Initializes the newly created XafApplication class instance.

Setup(String, IObjectSpaceProvider, ApplicationModulesManager, ISecurityStrategyBase)

Initializes the newly created XafApplication class instance.

Setup(String, IObjectSpaceProvider, String[], ISecurityStrategyBase)

Initializes the newly created XafApplication class instance.

Setup(String, String, String[])

Initializes the newly created XafApplication class instance.

Setup(String, String, String[], ISecurityStrategyBase)

Initializes the newly created XafApplication class instance.

ShowDetailViewFrom(Frame)

Indicates whether a Views invoked from the specified Frame can be displayed in a new Window.

UpdateStatus(String, String, String, Object[])

Triggers the XafApplication.StatusUpdating event.

See Also