This is a migrated thread and some comments may be shown as answers.

TileView Maximizing issue

6 Answers 38 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Tarang
Top achievements
Rank 1
Tarang asked on 03 Dec 2013, 10:21 AM
Hi,
I am using radtileview. When I set the property of  MaximizeMode of radtileview to "ZeroOrOne" than my image gets expanded but it has a fixed size as shown in attachment.
So, is there any way so that I can expand my image or stretch image size to tileview item size. As shown in attachment.

Thanks,
Tarang

6 Answers, 1 is accepted

Sort by
0
Ira
Top achievements
Rank 1
answered on 04 Dec 2013, 09:40 AM
Hi,

I am also facing the same issue. Can I get some help on this.
Any help would be appreciated.

Thanks,
Ira
0
Tarang
Top achievements
Rank 1
answered on 05 Dec 2013, 11:40 AM
Hi,

I got the solution for streching the image.
Ira, we just need to add an additional property for Stretch="Stretch.UniformToFill".
But I am getting problem when maximizing the image. Can we enable scrolls from code behind as I am binding radtileviewitems from code behind so is there any way that I can get scrolls when maximizing the image in radtileviewitem.
Reply Please.

Thanks,
Tarang
0
Milena
Telerik team
answered on 06 Dec 2013, 11:55 AM
Hi Tarang,

I am glad that you found a solution for stretching the image.

However, please consider one more option - using different sizes of the images for the different states of the TileViewItems (displaying smaller image when the item is minimized and a larger one when - maximized). You can achieve this by using the RadFluidContentControl in RadTileView to change the content of the RadTileViewItems depending on their state. For your convenience I implemented this approach in the attached project. You can read more about the usage of RadFluidContentControl in RadTileView in this tutorial.

As for enabling the ScrollViewer you can use the built-in functionality in the RadTileView. More about that you can read in our article - Enable the Horizontal and Vertical ScrollBars. There you can learn more about the properties that control the scrolling behavior which you can set in XAML or in code-behind. If you need to have a ScrollViewer inside the RadTileViewItems then you should implement your own logic for this.

I hope this information helps and don't hesitate to write back if you have any further questions.

Regards,
Milena
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Ira
Top achievements
Rank 1
answered on 09 Dec 2013, 10:44 AM
Hi Milena,

Thanks for the reply.

Thanks,
Ira
0
Tarang
Top achievements
Rank 1
answered on 09 Dec 2013, 11:41 AM
Hi Milena,

Thanks for the reply. I succeeded to get scrollbars on radtileview but I am facing one more problem here.
My functionality is that I drag items from radtileview and drop them into radtreeview. Previously whenever I click on item of radtileview than it get selected but after putting scrollview radtileviewitem is not selected and the only way to select that item is by clicking on its header.
So is there any other way to select radtileview item on clicking at the portion where scrollbars are present on that particular items.

Thanks,
Tarang
0
Milena
Telerik team
answered on 12 Dec 2013, 10:45 AM
Hi Tarang,

When the ScrollViewer is used inside the content of the RadTileViewItem, the click events are handled by the ScrollViewer, rather than the RadTileViewItem. This is why clicking inside the content of the RadTileViewItem will not trigger the selection logic. You can find more information about focus handling in SL here.

In order to overcome this behavior you can set the IsTabStop property of the ScrollViewer to False. By doing so the click events will be handled by the RadTileViewItem - instead of the ScrollViewer.

I'm attaching a sample project that demonstrates this approach. 

I hope this information helps.


Regards,
Milena
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
TileView
Asked by
Tarang
Top achievements
Rank 1
Answers by
Ira
Top achievements
Rank 1
Tarang
Top achievements
Rank 1
Milena
Telerik team
Share this question
or