mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-04 22:18:56 +00:00
Add MapItem.MapTransform property
This commit is contained in:
parent
b253d0696a
commit
85cc01f086
5 changed files with 76 additions and 9 deletions
|
|
@ -33,26 +33,40 @@
|
|||
<VisualState x:Name="Pressed"/>
|
||||
<VisualState x:Name="Selected">
|
||||
<Storyboard>
|
||||
<DoubleAnimation Storyboard.TargetName="selectedPath" Storyboard.TargetProperty="Opacity" To="0.75" Duration="0"/>
|
||||
<DoubleAnimation Storyboard.TargetName="selectedPath"
|
||||
Storyboard.TargetProperty="Opacity"
|
||||
To="0.75" Duration="0"/>
|
||||
</Storyboard>
|
||||
</VisualState>
|
||||
<VisualState x:Name="SelectedUnfocused">
|
||||
<Storyboard>
|
||||
<DoubleAnimation Storyboard.TargetName="selectedPath" Storyboard.TargetProperty="Opacity" To="0.75" Duration="0"/>
|
||||
<DoubleAnimation Storyboard.TargetName="selectedPath"
|
||||
Storyboard.TargetProperty="Opacity"
|
||||
To="0.75" Duration="0"/>
|
||||
</Storyboard>
|
||||
</VisualState>
|
||||
<VisualState x:Name="SelectedPointerOver">
|
||||
<Storyboard>
|
||||
<DoubleAnimation Storyboard.TargetName="selectedPath" Storyboard.TargetProperty="Opacity" To="0.75" Duration="0"/>
|
||||
<DoubleAnimation Storyboard.TargetName="selectedPath"
|
||||
Storyboard.TargetProperty="Opacity"
|
||||
To="0.75" Duration="0"/>
|
||||
</Storyboard>
|
||||
</VisualState>
|
||||
<VisualState x:Name="SelectedPressed">
|
||||
<Storyboard>
|
||||
<DoubleAnimation Storyboard.TargetName="selectedPath" Storyboard.TargetProperty="Opacity" To="0.75" Duration="0"/>
|
||||
<DoubleAnimation Storyboard.TargetName="selectedPath"
|
||||
Storyboard.TargetProperty="Opacity"
|
||||
To="0.75" Duration="0"/>
|
||||
</Storyboard>
|
||||
</VisualState>
|
||||
</VisualStateGroup>
|
||||
</VisualStateManager.VisualStateGroups>
|
||||
<Path Fill="Red" Opacity="0.4" IsHitTestVisible="False">
|
||||
<Path.Data>
|
||||
<EllipseGeometry RadiusX="20" RadiusY="20"
|
||||
Transform="{Binding MapTransform, RelativeSource={RelativeSource TemplatedParent}}"/>
|
||||
</Path.Data>
|
||||
</Path>
|
||||
<Path x:Name="selectedPath" Fill="White" Opacity="0">
|
||||
<Path.Data>
|
||||
<EllipseGeometry RadiusX="12" RadiusY="12"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue