Skip to main content

ElementAddingEventArgs.SourceObject Property

Gets the data item to which the event related element (a group or item) is bound.

Namespace: DevExpress.Xpf.NavBar

Assembly: DevExpress.Xpf.NavBar.v23.2.dll

NuGet Package: DevExpress.Wpf.NavBar

Declaration

public object SourceObject { get; }

Property Value

Type Description
Object

The data item object that supplies data for an added NavBar element (group or item).

Remarks

When the NavBar control is bound to a data source (via the NavBarControl.ItemsSource property), data source items (data items) are represented by NavBar items organized in groups (dependent on the NavBarControl.GroupDescription property setting). Use the SourceObject property to obtain the corresponding data item of the currently created NavBar element (an item or group). For a group, the SourceObject property typically determines the value of the data field specified by the NavBarControl.GroupDescription property.

See Also