RadTileViewItem in a UserControl

5 posts, 0 answers
  1. DOCS
    DOCS avatar
    7 posts
    Member since:
    Aug 2010

    Posted 28 Sep 2010 Link to this post

    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.
  2. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 28 Sep 2010 Link to this post

    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
  3. DevCraft banner
  4. Raymen
    Raymen avatar
    2 posts
    Member since:
    Nov 2012

    Posted 22 Nov 2012 Link to this post

    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

     
  5. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 27 Nov 2012 Link to this post

    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.

  6. Raymen
    Raymen avatar
    2 posts
    Member since:
    Nov 2012

    Posted 28 Nov 2012 Link to this post

    Thanks got it sorted.
Back to Top
DevCraft banner