Tech Tock

Time is of the essence.

ContentTemplate for Blendability

Was working on a medium sized DataTemplate that lost Blendability.  Extracted the piece I wanted to work on into a new DataTemplate and connected it with a simple ContentControl.  Problem solved (ish).

<DataTemplate x:Key=”ExtractedTempalate”>

<!—stuff you are interested in – make this blendable – probably not too hard for a small section –>
<Controls XXX=”any needed items here” />
</DataTemplate>

<DataTemplate x:Key=”UnBlendableTemplate” >

<!– lots of stuff you’re not interested in right now … –>

<ContentControl
Content=”{StaticResource ExtractedTempalate}”
Content=”{Binding}” />

<!– lots of stuff you’re not interested in right now … –>
</DataTemplate>

Advertisements

July 14, 2010 - Posted by | Uncategorized | ,

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: