Skip to main content
A newer version of this page is available. .
Bar

BarItemLinkBase.OverrideItemDataContext Property

Gets or sets if a BarItemLink should use a custom DataContext instead of a DataContext passed from a parent BarItem. This is a dependency property.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v20.2.dll

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

Declaration

public bool OverrideItemDataContext { get; set; }

Property Value

Type Description
Boolean

true if a BarItemLink should use a custom DataContext instead of a DataContext passed from a parent BarItem; otherwise, false.

Remarks

The DataContext concept allows BarItemLinks to inherit information from their parent BarItems about the data source that is used for binding, as well as other characteristics of the binding, such as the path. See the FrameworkElement.DataContext Property topic in MSDN to learn more. Use the OverrideItemDataContext to specify if a BarItemLink should use a custom DataContext or parent BarItem‘s DataContext.

See Also