is it possible to access the TileViewPanel.
Basically, I need to know the actual available space for the maximized item in order to do some scaling for the UserControl hosted inside the TileViewItem. I assume that this information is available somewhere in this panel.
to be more specific, I would like to have the MaximizedItem Container only as big as its content and not as big as the available space for it (by available space I mean ViewPort.Width - minimizedColumnWidth).
I tried changing the template for the TileViewItem as below:
Basically, I have replaced the outer grid with a canvas.
Now, the MaximizedItem shows the way I wanted but there are some issues with the Restored and Minimized Items:
- the restored item contains a ListBox defined as below
You can access the TileViewPanel through the RadTileView using the ChildrenOfType method like this:
var panel = this.myTileView.ChildrenOfType<TileViewPanel>().FirstOrDefault();
The problem is that you don't know the MaximizedItems content size before it is measured and you'll have to wait to adjust the MinimizedColumnWidth/Height. Also you can replace the Grid with Canvas only to the MaximizedItem with something like this:
For further references could you please examine the attached project? The only problem in it that because of the animation and dispatcher combination there could be some glitches.
If you have more questions feel free to ask.
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items