Back to Devexpress

AppearanceObject.ParentAppearance Property

windowsforms-devexpress-dot-utils-dot-appearanceobject-d8829330.md

latest2.4 KB
Original Source

AppearanceObject.ParentAppearance Property

Gets the parent appearance object.

Namespace : DevExpress.Utils

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
[Browsable(false)]
public AppearanceObject ParentAppearance { get; }
vb
<Browsable(False)>
Public ReadOnly Property ParentAppearance As AppearanceObject

Property Value

TypeDescription
AppearanceObject

An AppearanceObject object representing the parent appearance object. null ( Nothing in Visual Basic) if no parent appearance object is assigned.

|

Remarks

The DevExpress Ribbon, Menu and Docking Library allows you to use appearance inheritance. This implies each appearance object can have a parent specified by the ParentAppearance property. The settings that are to be inherited from the parent are specified by the options listed in the AppearanceObject.Options property. You should disable options that correspond to appearance settings that are going to be inherited from the parent. For example, if you need to use the parent’s background color, set the child appearance object’s AppearanceOptions.UseBackColor property to false.

Note that the ParentAppearance property is read only. The parent can only be specified when creating a new AppearanceObject instance.

See Also

AppearanceOptions

Appearances

AppearanceObject Class

AppearanceObject Members

DevExpress.Utils Namespace