This is a migrated thread and some comments may be shown as answers.

Animating elements in information layer

1 Answer 90 Views
Map
This is a migrated thread and some comments may be shown as answers.
Warnestam
Top achievements
Rank 1
Warnestam asked on 04 Aug 2011, 02:46 PM

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

1 Answer, 1 is accepted

Sort by
0
Warnestam
Top achievements
Rank 1
answered on 04 Aug 2011, 04:34 PM
Just found the <DataTrigger>!!!
Tags
Map
Asked by
Warnestam
Top achievements
Rank 1
Answers by
Warnestam
Top achievements
Rank 1
Share this question
or