This is a migrated thread and some comments may be shown as answers.

PanelBar XAML Help

1 Answer 68 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Chazz
Top achievements
Rank 1
Chazz asked on 06 Jun 2014, 03:34 PM
Hi All

In the "how to display hierarchical date" example, where does this line go in the XAML?

XAML
Me.radPanelBar.ItemsSource = MyViewModel.GenerateItems() 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 10 Jun 2014, 10:28 AM
Hello Chazz,

This line can be placed in the constructor of the MainWindow of your application. Or wherever the RadPanelBar control is used. For example if you have a Window with a PanelBar placed in its Xaml file you can set the ItemsSource property in the constructor of the window.
Public Sub New()
    InitializeComponent()
    Me.radPanelBar.ItemsSource = MyViewModel.GenerateItems()
End Sub

In addition I attached a sample project based on the How to Display Hierarchical Data help article. Please let me know if you need any further assistance.

Regards,
Martin
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
PanelBar
Asked by
Chazz
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or