Hello Telerik Team,
I have a RadOutlookBar, in which is currently one view that inherits from RadOutlookBarItem. In that view I overrided the OnIsSelectedChanged-Method from RadOutlookBarItem.
In the view, that contains the RadOutlookBar-Control, I added an eventhandler to the event PreviewSelectionChanged. So when I started the Application with the View, following methods are called:
1. OnIsSelectedChanged of the RadOutlookBarItem (oldvalue=false, newvalue=true)
2. The event PreviewSelectionChanged of the RadOutlookBar is fired (and certainly my eventhandler is called)
And if SelectionChangedEventArgs.Handled is set to true
3. OnIsSelectedChanged of the RadOutlookBarItem(oldvalue=true, newvalue=false)
Why is OnIsSelectedChanged called before the PreviewSelectionChanged-Event is fired?
Further Question:
If I click on the unselected OutlookBarItem, at first PreviewSelectionChanged from OutlookBar ist fired, if the Handled-Property is set to true, the OnIsSelectedChanged-Method of the Item ist called twice (first time with newValue = false, the second time with newValue = true)
Why is the OnIsSelectedChanged-Method called twice?
I have a RadOutlookBar, in which is currently one view that inherits from RadOutlookBarItem. In that view I overrided the OnIsSelectedChanged-Method from RadOutlookBarItem.
In the view, that contains the RadOutlookBar-Control, I added an eventhandler to the event PreviewSelectionChanged. So when I started the Application with the View, following methods are called:
1. OnIsSelectedChanged of the RadOutlookBarItem (oldvalue=false, newvalue=true)
2. The event PreviewSelectionChanged of the RadOutlookBar is fired (and certainly my eventhandler is called)
And if SelectionChangedEventArgs.Handled is set to true
3. OnIsSelectedChanged of the RadOutlookBarItem(oldvalue=true, newvalue=false)
Why is OnIsSelectedChanged called before the PreviewSelectionChanged-Event is fired?
Further Question:
If I click on the unselected OutlookBarItem, at first PreviewSelectionChanged from OutlookBar ist fired, if the Handled-Property is set to true, the OnIsSelectedChanged-Method of the Item ist called twice (first time with newValue = false, the second time with newValue = true)
Why is the OnIsSelectedChanged-Method called twice?