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

RadTileViewItem in a UserControl

4 Answers 129 Views
TileView
This is a migrated thread and some comments may be shown as answers.
DOCS
Top achievements
Rank 1
DOCS asked on 28 Sep 2010, 07:10 AM
I cannot get a RadTileViewItem to display in a Silverlight UserControl properly. For example:

 

 

 

<telerikNavigation:RadTileView x:Name="tileView">

 

 

 

 

    <userControls:myUserControl></userControls:myUserControl>                  

 

</telerikNavigation:RadTileView>

 


With the User Control simply having a RadTileViewItem in it, like so:

 

 

 

<telerikNavigation:RadTileViewItem Header="Test">

 

 

 

 

</telerikNavigation:RadTileViewItem>

 


The resulting RadTileView displays a RadTileViewItem wrapped inside another RadTileViewItem! Copy and paste the code and try it out if you need a proof of concept.

The code is for illustration only. In reality, the user controls will be loaded dynamically with several user controls from which to choose. I do not want to create new RadTileViewItem objects in code (as shown in previous threads) as it is cumbersome and gives no visible control over the look of each type of RadTileViewItem you want. I want to design several UserControls then load the User Controls at runtime.

Can someone tell me what I am doing wrong? This seems too strange.

4 Answers, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 28 Sep 2010, 01:21 PM
Hello Sandy,

 You get one RadTileViewItem inside another RadTileViewItem because whenever you add new item, that is not a RadTileViewItem, to the RadTileVIew it is automatically wrapped into RadTileViewItem.

Could you please examine the attached sample project and if you have further questions do not hesitate to ask?

Kind regards,
Zarko
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
0
Raymen
Top achievements
Rank 2
answered on 22 Nov 2012, 05:25 PM
Hi Guys;

Why would it be when i download the source and open in visual studio that the project does not pick up my two Telerik libraries. I have removed them and readded them to the prject and still it wont pick up my Telerik.Windows.Controls and Telerik.Windows.Controls.Navigation? I have added them locally from my machine and have installed the latest version of Silverlight telerik.Please see attached pics.

Thanks
Raymen Boshoff

 
0
Zarko
Telerik team
answered on 27 Nov 2012, 02:50 PM
Hello Raymen,
As far as I could see you've downloaded our 2012.3.1017 dlls which are Silverlight 5 dlls (since 2012.3.1017 we don't distribute SL 4 dlls) and I guess that your project is SL 4 and that's why you can't add the controls and navigation dlls. To fix this you'll just have to set your project as Silverlight 5 project (Properties -> Silverlight -> Target Silverlight Version) and everything should be ok.
If you have further questions please feel free to ask.

Greetings,
Zarko
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Raymen
Top achievements
Rank 2
answered on 28 Nov 2012, 07:25 AM
Thanks got it sorted.
Tags
TileView
Asked by
DOCS
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Raymen
Top achievements
Rank 2
Share this question
or