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

RadTileView as a Prism Region?

4 Answers 93 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Brian Sayatovic
Top achievements
Rank 1
Brian Sayatovic asked on 01 Jun 2010, 02:07 PM
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?

4 Answers, 1 is accepted

Sort by
0
Brian Sayatovic
Top achievements
Rank 1
answered on 01 Jun 2010, 05:30 PM
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.
0
Alexander B Yao
Top achievements
Rank 1
answered on 23 Jun 2010, 02:48 AM
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
0
Brian Sayatovic
Top achievements
Rank 1
answered on 23 Jun 2010, 02:35 PM
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.
0
Alexander B Yao
Top achievements
Rank 1
answered on 24 Jun 2010, 04:40 AM
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!
Tags
TileView
Asked by
Brian Sayatovic
Top achievements
Rank 1
Answers by
Brian Sayatovic
Top achievements
Rank 1
Alexander B Yao
Top achievements
Rank 1
Share this question
or