Hello,
If I cancel the selection of an item within the PreviewSelectionChanged event of the RadOutlookBar there are different behaviors depending on where the selection was made.
1) Selection in the 'normal' items-area -> Everthing is fine. The selected Item stays highlighted.
2) Selection in the MinimizedArea -> The wrong item gets highlighted.
Is it possible to workaround this ?
Regards
Rainer
Here is the sample-code:
<telerik:RadOutlookBar x:Name="obMenu" PreviewSelectionChanged="obMenu_PreviewSelectionChanged"> <telerik:RadOutlookBarItem Header="Item 1"> <Border Background="Blue"> <TextBlock Text="Item1"/> </Border> </telerik:RadOutlookBarItem> <telerik:RadOutlookBarItem Header="Item 2"> <Border Background="Green"> <TextBlock Text="Item1"/> </Border> </telerik:RadOutlookBarItem> <telerik:RadOutlookBarItem Header="Item 3"> <Border Background="Red"> <TextBlock Text="Item1"/> </Border> </telerik:RadOutlookBarItem></telerik:RadOutlookBar>private void obMenu_PreviewSelectionChanged(object sender, SelectionChangedEventArgs e) { if (MessageBoxResult.Yes == MessageBox.Show("Cancel selection ?", "Cancel", MessageBoxButton.YesNo, MessageBoxImage.Question)) { e.Handled = true; }}