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

MinimizedOutlookBarItem is highlighted although the selection was aborted

1 Answer 36 Views
OutlookBar
This is a migrated thread and some comments may be shown as answers.
Rainer
Top achievements
Rank 1
Rainer asked on 29 Sep 2011, 10:15 AM
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;
    }
}

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 04 Oct 2011, 09:13 AM
Hi Rainer,

 Unfortunately, this is a known bug in the RadOutlookBar (both WPF and SL). We have previously logged it in our PITS(OutlookBar: Canceling the selection of a minimized item doesn't work as expected). Actually , the cancelling of selection succeeds but visually , the selection colors are not reflected. Currently, there are no existing elegant workarounds for this issue. Please accept our apologies for the inconvenience caused.

All the best,
Petar Mladenov
the Telerik team

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

Tags
OutlookBar
Asked by
Rainer
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or