SelectionMode = None

2 posts, 0 answers
  1. Marcello
    Marcello avatar
    58 posts
    Member since:
    Apr 2013

    Posted 08 Apr Link to this post

    Hi,

    can I use PanelBar as a simple container without selection options?

    I want use it as a navigator control that help to organize informations and inputs.

    Is possible to disable background changes on mouse over, selections...?

    Thank's,

    marc.

     

     

  2. Martin
    Admin
    Martin avatar
    1099 posts

    Posted 10 Apr Link to this post

    Hello Marc,

    In order to prevent the selection in RadPanelBar you can subscribe for its PreviewSelectionChanged event and handle it.
    void control_PreviewSelectionChanged(object sender, SelectionChangedEventArgs e)
    {
        e.Handled = true;
    }
    However, disabling the visual feedback of the selection feature won't be such straightforward task. To do that you can extract and modify the template of the RadPanelBarItems and hide their selection and mouse over visuals. You can take a look at the Editing Control Templates help article which will be useful for this case. Keep in mind that the RadPanelBarItem is a hierarchical control and you will find few templates in its style. In other words you might need to modify the selection visuals on few places.

    I hope this information is useful.

    Regards,
    Martin
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top