Skip to content

NavigationViewMarkupExtensions.WithContentSelector method

Sets the selector mapping the selected item to its content element, which is cached per item.

public static NavigationView WithContentSelector(this NavigationView target,
Func<object?, Element?>? value)
parameter description
target Target NavigationView.
value Value assigned to ContentSelector.

The same element for chaining.

Sets: NavigationView.ContentSelector