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

[Solved] RadPictureRotatorHubTile change image stretch

3 Answers 75 Views
HubTile for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Diogo
Top achievements
Rank 1
Diogo asked on 26 Oct 2013, 12:39 AM
Hi
I'm sucessfully using the RadPictureRotatorHubTile control and my images appear on the control.
The problem is with landscape images, the images don't fit the control size as shown on the attachment.
Is there any way to change the strech property used by the control from Uniform to UniformToFill (I'm not quite sure that this is the problem but it seams to be)

Thanks

3 Answers, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 28 Oct 2013, 12:03 PM
Hello Diogo,

Thank you for your question.

You can change the Stretch property of the images by modifying the control template of the RadPictureRotatorHubTile. I have prepared an example that shows how to achieve this. You can take a look at the PART_FirstImage and PART_SecondImage images. Also, to have these changes applied, I have set their width and height.

Let me know if this works for you.


Regards,
Ivaylo Gergov
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Diogo
Top achievements
Rank 1
answered on 28 Oct 2013, 12:53 PM
Thanks,
I completely missed that on the documentation.

Best Regards
0
Ivaylo Gergov
Telerik team
answered on 28 Oct 2013, 02:01 PM
Hello Diogo,

I will add a How-to article in the documentation based on this example.

Thank you for your valuable feedback. Please, let us know should you have any other questions or suggestions.

 

Regards,
Ivaylo Gergov
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
HubTile for XAML
Asked by
Diogo
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Diogo
Top achievements
Rank 1
Share this question
or