Hi, I'm using the Breadcrumb tool to display a folder path in a WPF MVVM app.
It all seems to work apart from whent he form is initially loaded...
The UI/form is a usercontrol that constructs it's ViewModel via the extended property
prism:ViewModelLocator.AutoWireViewModel="True"
(I'm using the Prism framework)
The BreadCrumb is bound to a couple of properties in the ViewModel..
<telerik:RadBreadcrumb Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" x:Name="FolderPath"
ItemsSource="{Binding ImportSourceRoot.Children}"
HeaderMemberPath="Header"
HierarchicalItemsSource="Children"
HierarchicalMemberPath="Header"
HorizontalAlignment="Stretch"
IsLinearMode="False"
Path="{Binding ImportPath, Mode=TwoWay}"
TextModePath="Path"
IsTextModeEnabled="True"
VerticalAlignment="Top"
/>
The ImportSourceRoot property is a nested set of classes with the properties: Children (Observable list of more classes), Path (Folder name or drive letter, 'C:' for example) and Header (similar to Path but also annotated for the drop down).
ImportPath is simply a string property backed by a private variable.
As I said it all seems to work once started, navigation works via drop downs or typing, a pasting a path in works. The issue is when the form loads.
I initialise the ImportPath. It seems to start ok in that the displayed 'crumbed' path looks like the initial path, but the actual text path contains the path concatenated on itself. For example, "C:\temp\data" becomes "C:\temp\data\C:\temp\data" ?
I've monitored the string variable on start up and it gets read then written back in steps ....
"C:\temp\data\C:" -> "C:\temp\data\C:\temp" -> "C:\temp\data\C:\temp\data"
Any ideas?
It's not fatal but is annoying!
Thanks
Gregor
T