BreadcrumbBar.ItemsSource Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets an object source used to generate the content of the BreadcrumbBar
.
This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).
public:
property Platform::Object ^ ItemsSource { Platform::Object ^ get(); void set(Platform::Object ^ value); };
IInspectable ItemsSource();
void ItemsSource(IInspectable value);
public object ItemsSource { get; set; }
Public Property ItemsSource As Object
Property Value
An object source used to generate the content of the BreadcrumbBar
.
Remarks
The BreadcrumbBar control does not have an Items
property, it only has an ItemsSource
property. This means you can't populate the breadcrumbs in XAML or by adding them directly to an Items
collection in code. Instead, you create a collection and connect the ItemsSource
property to it in code or using data binding.
For more info, design guidance, and code examples, see Breadcrumb bar overview.