Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
745
HeaderTemplate binding not working
posted

Hi,

I'm trying to use the HeaderTemplate to customize the header of the ContentPane, but I get a binding error saying that the "XXX property not found on ABC.MyViewModel"...(the usual binding error message listed in the Output window). So I know that the binding is set up correctly.

So I know for sure that my ViewModel has the property I'm trying to bind to, and binding to the ViewModel works perfectly fine except when doing it from the HeaderTemplate of the ContentPane, so I need some help figuring out what's wrong here...?

Anyone had similar issues?

Here's my ContentPane style;

<Style TargetType="ig:ContentPane" BasedOn="">
      <Setter Property="HeaderTemplate">
           <Setter.Value>
               <DataTemplate>
                   <StackPanel>
                       <TextBlock Text="{Binding Path=Title}"/>                            
                   </StackPanel>
                </DataTemplate>
            </Setter.Value>
       </Setter>
   </Style>

-Thanks!

Parents Reply Children
No Data