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

NavBarItem.CoerceImageSource(DependencyObject, ImageSource) Method

Called whenever the NavBarItem.ImageSource, NavBarGroup.ImageSource or NavBarGroup.ImageSourceInNavPaneMenu dependency property value is being re-evaluated, or coercion is specifically requested.

Namespace: DevExpress.Xpf.NavBar

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

NuGet Package: DevExpress.Wpf.NavBar

#Declaration

public static ImageSource CoerceImageSource(
    DependencyObject dObj,
    ImageSource imageSource
)

#Parameters

Name Type Description
dObj DependencyObject

The object that the property exists on. When the CoerceImageSource method is invoked, the property system will pass this value.

imageSource ImageSource

The new value of the property, prior to any coercion attempt.

#Returns

Type Description
ImageSource

The coerced value.

See Also