Skip to main content

Attached Properties

  • 2 minutes to read
In This Article

The DXNavBar control exposes a set of attached properties, which can be used by different child elements, and are useful for customizing the control layout and scrolling behavior.

#Layout

Property

Getter/Setter Methods

Property Type

Property Value(s)

Description

NavBarViewBase.DisplayMode

NavBarViewBase.GetDisplayMode / NavBarViewBase.SetDisplayMode

DisplayMode

DisplayMode.ImageAndText

DisplayMode.Image

DisplayMode.Text

Gets or sets values that specify by which characteristics (the text, image, or both) content elements (such as group headers or items) should be represented within the view. This is an attached property.

NavBarViewBase.ImageSettings

NavBarViewBase.GetImageSettings / NavBarViewBase.SetImageSettings

ImageSettings

ImageSettings.Height

ImageSettings.Width

ImageSettings.Stretch

ImageSettings.StretchDirection

Provides access to image settings. This is an attached property.

NavBarViewBase.LayoutSettings

NavBarViewBase.GetLayoutSettings / NavBarViewBase.SetLayoutSettings

LayoutSettings

LayoutSettings.ImageDocking

LayoutSettings.ImageHorizontalAlignment

LayoutSettings.ImageVerticalAlignment

LayoutSettings.TextHorizontalAlignment

LayoutSettings.TextVerticalAlignment

Provides access to image and text layout settings. This is an attached property.

NavBarPositionPanel.GroupPosition

NavBarPositionPanel.GetGroupPosition

GroupPosition

GroupPosition.First

GroupPosition.Last

GroupPosition.Middle

GroupPosition.Single

Gets a value that identifies a group's position within the control. This is an attached property.

#Scrolling

Property

Getter/Setter Methods

Property Type

Property Value(s)

Description

ScrollingSettings.ClickMode

ScrollingSettings.GetClickMode / ScrollingSettings.SetClickMode

ClickMode

Release

Press

Hover

Gets or sets a value that specifies how scroll buttons should be manipulated by an end-user, to initiate scrolling. This is an attached property.

ScrollingSettings.ScrollSpeed

ScrollingSettings.GetScrollSpeed / ScrollingSettings.SetScrollSpeed

Double

A double-precision floating-point number.

Gets or sets the speed of scrolling (in pixels per second). This property is in effect when scrolling using scroll buttons. This is an attached property.

ScrollingSettings.TopBottomIndent

ScrollingSettings.GetTopBottomIndent / ScrollingSettings.SetTopBottomIndent

Double

A double-precision floating-point number.

Gets or sets the top and bottom indents of the scrollable region. This is an attached property.