Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 23rd, 2012  |  syntax: None  |  size: 1.08 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to create a new converter instance each time a Dependency property value is changed
  2. <Controls:GOTControlFx x:Name="GOTControlFx"
  3.                                          DataItemCollection="{Binding ChartItemCollection}"
  4.                                          MaxX="{Binding XAxisMaxDateTimeOA}"
  5.                                          MinX="{Binding XAxisMinDateTimeOA}">
  6.         <Controls:GOTControlFx.View>
  7.             <c1:ChartView>
  8.                 <c1:ChartView.AxisX>
  9.                     <c1:Axis IsTime="True" AnnoFormat="HH:mm">
  10.                         <c1:Axis.AnnoTemplate>
  11.                             <DataTemplate>
  12.                                 <TextBlock  
  13.                           Text="{Binding ConverterParameter={RelativeSource Self},
  14.                           Converter={StaticResource XAxisLabelTextConverter}}" />
  15.                             </DataTemplate>
  16.                         </c1:Axis.AnnoTemplate>
  17.                     </c1:Axis>
  18.                 </c1:ChartView.AxisX>
  19.             </c1:ChartView>
  20.         </Controls:GOTControlFx.View>
  21.     </Controls:GOTControlFx>