I'm populating a RadTileList using AutoGeneratingFile and setting Tile.Background to a ImageBrush, works well. In the RadTileList.Loaded event (which seems to be happen only after all AutoGeneratingTile events have completed) I set the RadTileList.SelectedItem.
This works great when I step thru the code in debug mode. However, if I don't step thru the code the SelectedItem will NOT be checked in the RadTileList?
Don't know how to proceed with this?
Any help?
Cheers, Rob.
I've tried setting e.Handled = True but the event still seems to bubble up to RadWindow1.RadTileList which then "selects" whatever Tile the mouse is over.
Also even tried IsHitTest and IsEnabled on the RadTileList still accepted the MouseLeftDownEvent.
I'm pretty sure this isn't "be design" behavior and how I prevent this problem or work around it?
For the original issue, can you send over some additional information like code snippets, a sample project or a video showing the exact setup, so I can check the troublesome behavior on my side?
About the scrolling question, there is no bring-into-view support in the RadTileList control. For this type of feature, you can take a look at the RadTileView control.
I haven't posted a suggestion for the scrolling because I am afraid that there is no convenient API that will allow you to do this. Currently, the only approach that I can offer is to get the ScrollViewer control of the RadTileList and call its ScrollToHorizontalOffset and ScrollToVerticalOffset methods. To get the ScrollViewer, you can use the FindChildByType<T>() extension method.
var scrollViewer = this.tileView.FindChildByType<ScrollViewer>();
However, the troublesome part here will be how to get the correct offset. This is because of the UI virtualization of the control and the possibility to use different sizes for the tiles. If you use a single size (like TileType=Double which is the default one), you can assume that each tile has a fixed size (lets say 100x100) and based on this information, along with the searched item index and the size of the control, you can calculate some offset which you can use with the ScrollViewer's methods.