Hi,
first of all I'm using the MVVM pattern.
In order to get the ActualVisibleRange from my DateTimeContinuousAxis i hooked up to the LayoutUpdated event and passed the axis via the CommandParameter:
When I apply this pattern to the ChartTrackBallBehavior to pass the Data of the Behavior i got an error:
Is there an alternative way to pass the data of the ChartTrackBallBehavior to my ViewModel?
Regards Markus
first of all I'm using the MVVM pattern.
In order to get the ActualVisibleRange from my DateTimeContinuousAxis i hooked up to the LayoutUpdated event and passed the axis via the CommandParameter:
<
telerik:DateTimeContinuousAxis
x:Name
=
"horizontalAxis"
LabelFormat
=
"dd.MM hh:mm"
LabelFitMode
=
"MultiLine"
>
<
i:Interaction.Triggers
>
<
i:EventTrigger
EventName
=
"LayoutUpdated"
>
<
i:InvokeCommandAction
Command
=
"{Binding LayoutUpdatedCommand}"
CommandParameter
=
"{Binding ElementName=horizontalAxis}"
/>
</
i:EventTrigger
>
</
i:Interaction.Triggers
>
</
telerik:DateTimeContinuousAxis
>
When I apply this pattern to the ChartTrackBallBehavior to pass the Data of the Behavior i got an error:
<
telerik:ChartTrackBallBehavior
x:Name
=
"trackBallBehavior"
ShowTrackInfo
=
"True"
>
<
i:Interaction.Triggers
>
<
i:EventTrigger
EventName
=
"TrackInfoUpdated"
>
<
i:InvokeCommandAction
Command
=
"{Binding TrackInfoUpdatedCommand}"
CommandParameter
=
"{Binding ElementName=trackBallBehavior}"
/>
</
i:EventTrigger
>
</
i:Interaction.Triggers
>
</
telerik:ChartTrackBallBehavior
>
Is there an alternative way to pass the data of the ChartTrackBallBehavior to my ViewModel?
Regards Markus