.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

AppearanceController Members

A ViewController descendant that applies conditional appearance rules to specified UI elements.

Constructors

Name Description
AppearanceController() Creates an instance of the AppearanceController class.

Fields

Name Description
AppearanceActionType static For internal use.
AppearanceContextAny static For internal use.
AppearanceContextDetailView static For internal use.
AppearanceContextListView static For internal use.
AppearanceLayoutItemType static For internal use.
AppearanceViewItemType static For internal use.
ControllerActiveKey static Specifies one of the keys from the ActionBase.Active collection of a Controller's Controller.Actions. By default, this field value is "Controller active". You can use this field when working with the ActionBase.Active collection. Inherited from Controller.
ViewIsAssignedReason static Specifies the Controller.Active list's reason that indicates whether a View is assigned to the current ViewController. Inherited from ViewController.

Properties

Name Description
Actions Provides access to a Controller's Action collection. Inherited from Controller.
Active Provides access to a collection of reason/value pairs used to activate or deactivate a Controller, or determine its active state. Inherited from Controller.
Application Provides access to an XafApplication object that can be used to manage the current application. Inherited from Controller.
CanRaiseEvents protected Gets a value indicating whether the component can raise an event. Inherited from Component.
Container Gets the IContainer that contains the Component. Inherited from Component.
DesignMode protected Gets a value that indicates whether the Component is currently in design mode. Inherited from Component.
Events protected Gets the list of event handlers that are attached to this Component. Inherited from Component.
Frame Provides access to a Controller's Frame. Inherited from Controller.
IsInRefresh Indicates whether or not the AppearanceController.Refresh method is currently being executed.
LockCount Gets the number of Appearance Controller updates that are currently in progress.
Name Returns a full name of a Controller's type. Inherited from Controller.
Site Gets or sets the ISite of the Component. Inherited from Component.
Tag Provides access to the object that contains data about the Controller. Inherited from Controller.
TargetObjectType Specifies a ViewController's target object type. The View Controller is activated only for Views that represent this type. Inherited from ViewController.
TargetViewId Specifies the identifier of the View for which the View Controller is activated, or a semicolon-separated list of identifiers if a View Controller targets multiple Views. Inherited from ViewController.
TargetViewNesting Specifies whether the View for which a View Controller is intended must be root, nested or any. Inherited from ViewController.
TargetViewType Specifies the type of the View, for which a View Controller is intended. Inherited from ViewController.
TypeOfView Specifies the type of the View, for which a View Controller is intended. Inherited from ViewController.
View Provides access to a View Controller's View. Inherited from ViewController<ViewType>.

Methods

Name Description
AppearanceBeginUpdate() Prevents the AppearanceController from being updated until the AppearanceController.AppearanceEndUpdate method is called.
AppearanceEndUpdate() Unlocks the AppearanceController after a call to the AppearanceController.AppearanceBeginUpdate method and resets the rules cache.
Clone(IModelApplication) Clones a Controller. Inherited from Controller.
Create(Type) static Instantiates a Controller object of the specified type and raises it's Controller.AfterConstruction event. Inherited from Controller.
CustomizeTypesInfo(ITypesInfo) Customizes business class metadata before loading it to the Application Model's BOModel node. Inherited from Controller.
Dispose() Releases all resources used by the Component. Inherited from Component.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetLifetimeService() Retrieves the current lifetime service object that controls the lifetime policy for this instance. Inherited from MarshalByRefObject.
GetRulesFromModel(IModelClass) static Returns the list of appearance rules declared in the specified IModelClass node.
GetService(Type) protected Returns an object that represents a service provided by the Component or by its Container. Inherited from Component.
GetType() Gets the Type of the current instance. Inherited from Object.
InitializeLifetimeService() Obtains a lifetime service object to control the lifetime policy for this instance. Inherited from MarshalByRefObject.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
MemberwiseClone(Boolean) protected Creates a shallow copy of the current MarshalByRefObject object. Inherited from MarshalByRefObject.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Refresh() Refreshes the conditional appearance provided by the Controllers registered in the Appearance Controller.
RefreshItemAppearance(IViewInfo, String, String, Object, Object, EvaluatorContextDescriptor) Collects and applies the conditional appearance rules appropriate for the specified UI element with a context descriptor specified.
RefreshItemAppearance(IViewInfo, String, String, Object, Object[], EvaluatorContextDescriptor) Collects and applies the conditional appearance rules appropriate for the specified UI element with a context descriptor specified.
RefreshItemAppearance(View, String, String, Object, Object) Collects and applies the conditional appearance rules appropriate for the specified UI element.
RefreshItemAppearance(View, String, String, Object, Object, EvaluatorContextDescriptor) Obsolete. Collects and applies the conditional appearance rules appropriate for the specified UI element with a context descriptor specified.
RefreshItemAppearance(View, String, String, Object, Object[], EvaluatorContextDescriptor) Obsolete. Collects and applies the conditional appearance rules appropriate for the specified UI element with a context descriptor specified.
RegisterController(ISupportRefreshItemsAppearance) Registers a Controller to refresh the conditional appearance of its UI elements in common scenarios.
ResetRulesCache() Resets the cache of the rules collected by the Appearance Controller at the current moment.
SetView(View) Sets a specified View for a View Controller. Inherited from ViewController.
ToString() Returns a String containing the name of the Component, if any. This method should not be overridden. Inherited from Component.
UnRegisterController(ISupportRefreshItemsAppearance) Removes a Controller from the list of registered Controllers.

Events

Name Description
Activated Occurs when a Controller is activated. Inherited from Controller.
AfterConstruction Occurs after a Controller is created. Inherited from Controller.
AppearanceApplied Occurs after the conditional appearance is applied to the target UI element.
CollectAppearance Obsolete. Occurs after conditional appearance rules for the target UI element are collected.
CollectAppearanceRules Occurs after conditional appearance rules for the business object represented by the specified View are collected from the Application Model.
CustomApplyAppearance Occurs before the conditional appearance is applied to the target UI element.
CustomCollectAllAppearanceRuleProperties Occurs when appearance rules are collected. Use this event to provide the list of rules from a custom source.
CustomCreateAppearanceRule Occurs when an AppearanceRule object is created.
CustomGetIsRulePropertiesEmpty Occurs when the Appearance Controller collects the appearance rules and determines whether or not the specific IAppearanceRuleProperties object is empty.
Deactivated Occurs after a Controller has been deactivated. Inherited from Controller.
Disposed Occurs when the component is disposed by a call to the Dispose() method. Inherited from Component.
FrameAssigned Occurs after a Frame (Window) has been assigned to a Controller. Inherited from Controller.
ViewControlsCreated Occurs after the controls have been created for the current Controller's ViewController.View if the Controller has already been activated. Inherited from ViewController.
ViewControlsDestroying For internal use only. Inherited from ViewController.
See Also