As a newbie to WPF I've been struggled with triggers and animations for a while.
This is my element in the information layer:
<
telerik:InformationLayer.ItemTemplate
>
<
DataTemplate
>
<
Grid
x:Name
=
"TopLevelGrid"
Width
=
"Auto"
Height
=
"Auto"
telerik:MapLayer.Location
=
"{Binding Location}"
telerik:MapLayer.BaseZoomLevel
=
"9"
>
<
ToolTipService.ToolTip
><
ToolTip
><
ToolTip.Content
>
...
</
ToolTip.Content
></
ToolTip
></
ToolTipService.ToolTip
>
<
Ellipse
Name
=
"myEllipse"
Width
=
"20"
Height
=
"20"
Stroke
=
"{Binding Stroke}"
StrokeThickness
=
"3"
StrokeDashArray
=
"2"
Fill
=
"{Binding Fill}"
Style
=
"{StaticResource myStyle}"
>
<
telerik:MapLayer.HotSpot
><
telerik:HotSpot
X
=
"0.5"
Y
=
"0.5"
/></
telerik:MapLayer.HotSpot
>
</
Ellipse
>
</
Grid
>
</
DataTemplate
>
</
telerik:InformationLayer.ItemTemplate
>
The problem is that I want a property (or event) in my custom class for the element to trigger the animation. So far I've tried to do it both in XAML and in code without success.
I would be grateful if you could give me a hint or two of how to solve the issue.
Regards
Robert