Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Navigation > Using RadTabControl with Navigation

Not answered Using RadTabControl with Navigation

Feed from this thread
  • Posted on Oct 28, 2011 (permalink)

    Hi...
    I would like to create someway of navigation, that when a user clicks on a menu button, for example a RadRibbonButton, the application will dynamically create a new RadTabItem, unless that RadTabItem isn't already created.

    I want to do this using the MVVM pattern. Inside each RadTabItem, by passing a parameter, i will load a view, for example a Customer view.

    Someone could give me some tips of how to implement this?

    Thanks!

    Reply

  • Tina Stancheva Tina Stancheva admin's avatar

    Posted on Nov 2, 2011 (permalink)

    Hello Alexandre,

    I am not sure if I fully grasp the requirements of your scenario. But you can use an MVVM approach and databind the RadRibbonView control. Then add commands to control the actions of the RadRibbonView buttons. Also bind the RadTabControl ItemsSource and use the view model commands associated with the RadRibbonButtons to add/remove items from the RadTabControl ItemsSource collection.

    I attached a very basic sample that illustrates how to databind the RadRibbonView control and use buttons to add new RadTabItems to a RadTabControl. The project also demonstrates how to take advantage of the RadTabControl ItemTemplateSelector and ContentTemplateSelecot properties to visualize the different types of business items differently inside the RadTabControl.

    I hope it will help you get started on the implementation of your scenario.

    Kind regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Attached files

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Navigation > Using RadTabControl with Navigation
Related resources for "Using RadTabControl with Navigation"

Silverlight Navigation Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]