I have a treeview in its simples form possible, can anyone explain why this little piece of code doesnt show my tree?
The background - hotpink displays but not test and test1 strings as expected.. Any ideas?
<
UserControl
x:Class
=
"treeview.MainPage"
xmlns:telerikNav
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
xmlns:telerikCon
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"400"
>
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
telerikNav:RadTreeView
Background
=
"HotPink"
ItemsSource
=
"{Binding ParentList}"
/>
</
Grid
>
</
UserControl
>
Imports
System.ComponentModel
Imports
System.Collections
Imports
System.Collections.ObjectModel
Partial
Public
Class
MainPage
Inherits
UserControl
Public
ParentList
As
New
ObservableCollection(Of
String
)
Public
Sub
New
()
InitializeComponent()
PopulateList()
End
Sub
Public
Sub
PopulateList()
ParentList.Add(
"test"
)
ParentList.Add(
"test1"
)
End
Sub
End
Class
The background - hotpink displays but not test and test1 strings as expected.. Any ideas?