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

SelectionMode = None

1 Answer 159 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Marcello
Top achievements
Rank 1
Iron
Marcello asked on 08 Apr 2016, 04:39 PM

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.

 

 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 10 Apr 2016, 09:06 PM
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.
Tags
PanelBar
Asked by
Marcello
Top achievements
Rank 1
Iron
Answers by
Martin Ivanov
Telerik team
Share this question
or