The samples provided with the BreadCrumb control suggest it can be used to coordinate navigation through a directory tree, but the provided samples all use static content to populate the BreadCrumb control's ItemSource data.
How can the BreadCrumb control be used with dynamic content? For example, an XML representation that consists of an XPath that has a "Name" for a given "Folder" to represent a particular directory path where the path is built up dynamically as you navigate toward a particular target directory:
C:\Root\test1\test2\
[C:\] ^| [Root]^| [test1]^ | [test2]^
Where each breadcrumb shown above has it's data populated as you select the next, rather than having the entire path pre-built, as shown in the provided examples?
You would not know the target directory in advance of navigation if the Breadcrumb control were used in this manner, so the provided examples are not representative of actual usage for this scenario.
Sample XML:
<XmlDataProvider x:Key="FolderRoot">
<x:XData>
<Folder xmlns="" Name="C:\">
</Folder>
</x:XData>
</XmlDataProvider>
Note: the above XML is built dynamically as you navigate through directory structure. This is just the very first node.
How can the BreadCrumb control be used with dynamic content? For example, an XML representation that consists of an XPath that has a "Name" for a given "Folder" to represent a particular directory path where the path is built up dynamically as you navigate toward a particular target directory:
C:\Root\test1\test2\
[C:\] ^| [Root]^| [test1]^ | [test2]^
Where each breadcrumb shown above has it's data populated as you select the next, rather than having the entire path pre-built, as shown in the provided examples?
You would not know the target directory in advance of navigation if the Breadcrumb control were used in this manner, so the provided examples are not representative of actual usage for this scenario.
Sample XML:
<XmlDataProvider x:Key="FolderRoot">
<x:XData>
<Folder xmlns="" Name="C:\">
</Folder>
</x:XData>
</XmlDataProvider>
Note: the above XML is built dynamically as you navigate through directory structure. This is just the very first node.