Thanks Andrea,

I think I've got it now. The controlTemplate bindings essentially say "use
the settings that are set on the instance". I think I got confused by the
fact that you can set values in either place. Reading up on it some more
now. I only used these a couple of times in WPF so not really enough to
understand how to use them correctly.

Anyway It's working the way I want now.

cheers,
Stephen

On Wed, May 14, 2008 at 6:13 PM, Andrea Boschin <[EMAIL PROTECTED]> wrote:

> On Wed, May 14, 2008 at 12:02 PM, Stephen Price <[EMAIL PROTECTED]>
> wrote:
>
> > Sorry I was not very clear. I'll rephrase.
> >
> > Where do I put the Text="{Binding Title}" (that was in my DataTemplate)
> > if I am using an ItemContainerStyle?
>
>
> that's ok. I think you have to bind the Content property of the
> ContentPresenter eith the TemplateBinding
>
> Content="{TemplateBinding Content}"
> Then you have to use the DataTemplate as you have used it pror to
> customize the ControlTemplate
>
> This cause the binding to be applied based on the DataTemplate you have
> created.
>
> HTH
>
> --
> Andrea Boschin
> Microsoft(R) MVP - [Visual Developer - ASP/ASP.NET]
> http://blog.boschin.it
> http://www.xedotnet.org
> http://mvp.support.microsoft.com/profile/Andrea.Boschin
> -------------------------------------------------------------------
> OzSilverlight.com - to unsubscribe from this list, send a message back to
> the list with 'unsubscribe' as the subject.
> Powered by mailenable.com - List managed by www.readify.net
>



------------------------------------------------------------------- 
OzSilverlight.com - to unsubscribe from this list, send a message back to the 
list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net

Reply via email to