Hi,
I'm running into another problem with XAML and I hope someone can help me out. I'm trying to create a TreeView off of ONE POCO class using ObservableCollection property. Here's the scenario:
The Parent node has the name of the vendor and the vendor's part list, and that seems to be working fine though I want to change it's display layout at a later stage; but on the child leaves, I wanted it to be hyperlinks that the user can click on it and open a browser, but it doesn't seem to be working. ALL of this information is from one POCO class called PartsList. Here's the XAML:
<HierarchicalDataTemplate x:Key="PartListTemplate" ItemsSource="{Binding CurrentPartsList}"><StackPanel Orientation="Horizontal"><TextBox Text="{Binding Path=VendorName}"/><TextBox Text="{Binding Path=VendorPartNo}"></TextBox></StackPanel><HierarchicalDataTemplate.ItemTemplate><HierarchicalDataTemplate ItemsSource="{Binding}"><StackPanel Orientation="Vertical"><TextBox Text="{Binding Path = VendorPartNoLink}" /><TextBox Text="{Binding Path = AlternativeLink1}" /><TextBox Text="{Binding Path = AlternativeLink2}" /><TextBox Text="{Binding Path = AlternativeLink3}" /></StackPanel></HierarchicalDataTemplate></HierarchicalDataTemplate.ItemTemplate></HierarchicalDataTemplate>
As stated, the Vendor Name and Vendor Part Number is showing up fine, but it's the ItemTemplate that's giving me a headache. So where did I go wrong?