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
40
Binding to NumericXAxis's Interval property from Label Template
posted

I'm trying to pass the Interval value to a converter inside the Label template. But somehow the value never gets passed. However, passing Item property value works.

 

This is the XAML:

   

<Style TargetType="ig:NumericXAxis">

    <Setter Property="Interval" Value="1E15">

      <Setter Property="Label">

           <Setter.Value>

               <DataTemplate>

<TextBlock Foreground= Black}">

               <TextBlock.Text>

                           <MultiBinding Converter="{StaticResource NiceDateConverter}">

                               <Binding Path="Item"/>

                               <Binding Path="Interval"/>

                           </MultiBinding>

                       </TextBlock.Text>

                   </TextBlock>

               </DataTemplate>

           </Setter.Value>

       </Setter>

Parents Reply Children