Skip to main content

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