I am using TileView in my application. A wonderful control!
Additionally, I would also like to hide the "minimized" tileviewitems to give more space to the "maximized" tileviewitem.
The "minimized" list of tileviewitems need to be pinned to the right corner so that the user can unpin/dock it based on his/her preferences.
Kindly provide a solution.
Regards,
Karthik.
7 Answers, 1 is accepted
Currently there's no build in support for such behavior, but there are a couple of ways to achieve it:
- You can use a button and set the MinimizedColumnWidth in its click handler.
- Or you can use a grid splitter to dynamically adjust the MinimizedColumnWidth as shown here.
If you have further questions feel free to ask.
Zarko
the Telerik team
The RadTileView doesn't support that functionality out of the box but you can imitate it. For example you can use a RadExpander and change the MinimizedColumnWidth/MinimizedRowHeight in its Expand and Collapse events.
Could you please examine the attached project and if you need further assistance don't hesitate to ask?
I face the following problem after the 2011 update of telerik controls for silverlight. I have a Tileview width tileviewitems and within one of the tileviewitem I'm showing different content when the user clicks on a button. Using a viewmodel that is databound to this tileview item I could before succesfully change to a new content by setting the fluidcontrol.content to my preferred content. However I'm not seeing the content if I not resize the complete silverlight window from small to large.
Do you know what is going wrong?
Regards,
Rabin
Could you please give us some code snippets or a project that reproduces the issue, because I wasn't able to recreate it? I've attached the sample project that I use for testing so you could examine it.
If you need further assistance feel free to ask.
Kind regards,
Zarko
the Telerik team
I am after similar functionality and wanted to look at your sample project. Unfortunately I get the following errors...
Error 1 Cannot implicitly convert type 'System.Windows.GridLength' to 'double?' C:\Users\meaton\Desktop\Tile\TileViewWithExpander\TileViewWithExpander\MainPage.xaml.cs 40 14 TileViewWithExpander
Error 2 Cannot implicitly convert type 'System.Windows.GridLength' to 'double?' C:\Users\meaton\Desktop\Tile\TileViewWithExpander\TileViewWithExpander\MainPage.xaml.cs 58 15 TileViewWithExpander
I get this here:
private void expandButton_Collapsed(object sender, RoutedEventArgs e)
{
Storyboard sb = new Storyboard();
DoubleAnimation da = new DoubleAnimation();
da.From = this.myTileView.MinimizedColumnWidth;
da.To = 0;
da.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 300));
....
private void expandButton_Expanded(object sender, RoutedEventArgs e)
{
if (myTileView != null)
{
Storyboard sb = new Storyboard();
DoubleAnimation da = new DoubleAnimation();
da.From = this.myTileView.MinimizedColumnWidth;
da.To = 250;
da.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 300));
You're facing this problem because the example that I've provided in my previous post used the older dlls (before the RadTileView refactoring). In the new RadTileView (after Q1 2011 Beta) the MinimizedColumnWidth property is now of type GridLenght and that's why you can't directly convert it to double. And also I think that you won't need the animations and you could directly set the MinimizedColumnWidth.
For further references could you please examine the attached project and see if it helps you.
All the best,
Zarko
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!