Visual studio feeds

All Visual Studio blogs in one place

Subscribe

Enter your email address:

Delivered by FeedBurner

Increase your website traffic with Attracta.com

Google+

Contact

Email:
Subject:
Message:
Anti-spam: How many eyes has a typical person?

Follow us on FB

Search

Building a Jounce RegionAdapter with the Accordion Control

AddThis Social Bookmark Button
Natively, Jounce supports two types of Region containers, the ContentControl and the ItemsControl.  You can add your own containers by inheriting from RegionAdapterBase.  In this post, I will show you how you can build a RegionAdapter using the Accordion control (from the Silverlight Toolkit) as a container: Step 1.  Add a class that inherits from RegionAdapterBase and implement the required ActivateControl override. Jounce.Regions.Adapters.RegionAdapterBase
[RegionAdapterFor(typeof(Accordion))]
public class AccordionRegionAdapter : RegionAdapterBase { public override void ActivateControl(string viewName,
string targetRegion) { } } Step 2.  Implement ActivateControl.  This step involves the following process.  First, you need to validate the region name and control name provided in the parameters of the call.  Jounce has two helper methods that make the validation an easy task.  The next step is to determine if we have already added the view to our region.  We can do this simply by maintaining an internal list of views.  If the view is already added, we simply make that view...(Read whole news on source site)

Home : Blog List : Page Brooks : Building a Jounce RegionAdapter with the Accordion Control