Runtime addition/deletion of buttons to tool bar

2 posts, 0 answers
  1. Subha
    Subha avatar
    10 posts
    Member since:
    Dec 2010

    Posted 02 Feb 2011 Link to this post


    We have a requirement to build runtime silverlight tool bar based on a standard list of items. Here are the following things that we want to achieve with this toolbar.
    1. Users should be able to select what to appear and what not to. 
    2. User should be able to drag and drop tool bar anywhere on the window(Horizontal or vertical)

    I would appreciate if you can review these and let me know if these can be achieved and also if possible provide a sample code.  I am using 2010 Q2 version.

  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 08 Feb 2011 Link to this post

    Hi Subha,

    If you have a list of all UI elements that can be added inside the RadToolBar and display them in a ListBox, you can either handle the ListBox SelectionChanged() event or add a Button to create the UIElements and add them inside a RadToolBar.

    Also, you can use the RadDragAndDropManager to create your own dragging logic for the RadToolBar. More information about this control you can find here.

    I prepared a sample project to help you get started. Have a look at it and let us know if you need more info.

    All the best,
    Tina Stancheva
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Back to Top