RadTileView as a Prism Region?

5 posts, 0 answers
  1. Brian Sayatovic
    Brian Sayatovic avatar
    91 posts
    Member since:
    Nov 2009

    Posted 01 Jun 2010 Link to this post

    With Microsoft's Compostie Application Guidance (a.k.a. Prism -- http://msdn.microsoft.com/en-us/library/ff648611.aspx), one can define a region and later have Prism modules register views with that region.  Through Prism's magic (RegionManager, RegionAdapters, etc.), the views get added.

    When I try defining a RadTileView as a region and then inject views, they end up overlaying each other (also see attached screenshot RadTileView-Region.png):

    <telerikNavigation:RadTileView ...Regions:RegionManager.RegionName="DashboardRegion" 

    In the screenshot, you can see one injected view (a login component -- just as a test) overlaying another component (you can barely see the edge of it behind the login view).  They're not rendering as tiles in the RadTileView, although the chrome for minimizing them are and it has some sort of rearrangement effect.

    Has anyone tried to marry these two technologies and succeeded?
  2. Brian Sayatovic
    Brian Sayatovic avatar
    91 posts
    Member since:
    Nov 2009

    Posted 01 Jun 2010 Link to this post

    Actually, we got it working.  I don't know the source of the actual problem, but it appears to have to do with the nested structure I had the RadTileView in: ... -> Border --> ContentControl --> Frame --> Border --> RadTileView.  When I short-circuit and place the RadTileView where the ContentControl was, it works fine.
  3. DevCraft banner
  4. Alexander B Yao
    Alexander B Yao avatar
    2 posts
    Member since:
    Jun 2010

    Posted 22 Jun 2010 Link to this post

    Hi Brian,

    I'm actually facing the same problem. The RadTileView works perfectly as long as I dont have it in a content control that has the region. Would you mind posting the xaml you used that fixed the problem? Thanks in advance!


    Regards,
    Alex
  5. Brian Sayatovic
    Brian Sayatovic avatar
    91 posts
    Member since:
    Nov 2009

    Posted 23 Jun 2010 Link to this post

    Well, since we got it working, someone has gone back and cut it up with different style templates for the header, content template, etc. so I'm not even sure how to pull it together simply (and I'm not allowed to copy & paste the full file without "sanitizing" it first).

    What I can tell you is we got it working by just going back to a plain RadTileView with no custom styles or anything and giving it a RegionName (Regions:RegionManager.RegionName="MainRegion").  Then any regions we injected into the region manager from our modules showed up just fine.
  6. Alexander B Yao
    Alexander B Yao avatar
    2 posts
    Member since:
    Jun 2010

    Posted 23 Jun 2010 Link to this post

    Thanks Brian. I got it working for me too. I've also identified that its the ContentControl where I was putting the region was causing the issue. I moved the region into the actual container where I wanted the RadTileView to fill in and it worked.

    Thanks again!
Back to Top
DevCraft banner