PanelBar XAML Help

2 posts, 0 answers
  1. Chazz
    Chazz avatar
    2 posts
    Member since:
    May 2014

    Posted 06 Jun 2014 Link to this post

    Hi All

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

    XAML
    Me.radPanelBar.ItemsSource = MyViewModel.GenerateItems() 
  2. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 10 Jun 2014 Link to this post

    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.
     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top