Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.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