When SelectionMode=Extended.
I'm using a RadTileView with multiselection turned on, and when I programmatically change the SelectedItems in the view, the view becomes focused and of course steals focus away from the other control that the user is on. That is... well, I'm trying to understand why you would even do that, and why only for the Extended mode.
(I know now that repro-ing issues seems to be difficult at times, so here is the relevant code I found in ILSpy and with a simple GotFocus hook on the RadTileView:
// Telerik.Windows.Controls.RadTileViewItem
protected virtual void OnIsSelectedChanged(bool oldValue, bool newValue)
{
...
if (newValue && this.ParentTileView != null && this.ParentTileView.SelectionMode == SelectionMode.Extended)
{
// REALLY BAD IDEA
--> base.Focus();
--> this.ParentTileView.ContainerToFocus = this;
}
...
}
Anyway, it "looks" like I can derive from RadTileView and then derive from the RadTileViewItem class and then override that method and call base with newValue = false, but I have yet to try. Still, not ideal.