I have a time slider and I'd like to display certain values in a text block as the time slider moves. Each value is associated with a time stamp on the time slider. So I've added a field to the mosaic dataset table associated with the time slider, and added the appropriate values within it. But I'm not quite sure what the syntax is for binding this with the time slider. I've been playing with the code below, which just displays the year of the time slider:
<StackPanel DataContext="{Binding ElementName=CurrentTimeSlider, Path=Value}" Orientation="Horizontal" Margin="5" HorizontalAlignment="Center">
<TextBlock Text="{Binding End.Year}" FontSize="12" />
</StackPanel>
The Text that I want to display is within the TextBlock - does anyone know the syntax for what I set the Text equal to? Do I need to change the DataContext as well? Is this kind of binding even possible? Thanks much, appreciate any help..Dan