mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update MainWindow.xaml
This commit is contained in:
parent
0d45fefc6b
commit
f95017bdd3
|
|
@ -61,6 +61,7 @@
|
||||||
</VisualState>
|
</VisualState>
|
||||||
</VisualStateGroup>
|
</VisualStateGroup>
|
||||||
</VisualStateManager.VisualStateGroups>
|
</VisualStateManager.VisualStateGroups>
|
||||||
|
|
||||||
<!-- Path with transformed Geometry -->
|
<!-- Path with transformed Geometry -->
|
||||||
<Path Fill="Red" Opacity="0.4" IsHitTestVisible="False">
|
<Path Fill="Red" Opacity="0.4" IsHitTestVisible="False">
|
||||||
<Path.Data>
|
<Path.Data>
|
||||||
|
|
@ -99,11 +100,48 @@
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
<ControlTemplate TargetType="map:MapItem">
|
<ControlTemplate TargetType="map:MapItem">
|
||||||
<map:Pushpin Content="{Binding Name}"
|
<Grid>
|
||||||
|
<VisualStateManager.VisualStateGroups>
|
||||||
|
<VisualStateGroup x:Name="CommonStates">
|
||||||
|
<VisualState x:Name="Normal"/>
|
||||||
|
<VisualState x:Name="Disabled"/>
|
||||||
|
<VisualState x:Name="PointerOver"/>
|
||||||
|
<VisualState x:Name="Pressed"/>
|
||||||
|
<VisualState x:Name="Selected">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Target="pushpin.Foreground" Value="OrangeRed"/>
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
<VisualState x:Name="SelectedUnfocused">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Target="pushpin.Foreground" Value="OrangeRed"/>
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
<VisualState x:Name="SelectedPointerOver">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Target="pushpin.Foreground" Value="OrangeRed"/>
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
<VisualState x:Name="SelectedPressed">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Target="pushpin.Foreground" Value="OrangeRed"/>
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateManager.VisualStateGroups>
|
||||||
|
|
||||||
|
<map:Pushpin x:Name="pushpin" Content="{Binding Name}"
|
||||||
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"/>
|
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"/>
|
||||||
|
</Grid>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter.Value>
|
</Setter.Value>
|
||||||
</Setter>
|
</Setter>
|
||||||
|
<!--<Style.Triggers>
|
||||||
|
<Trigger Property="IsSelected" Value="True">
|
||||||
|
<Setter Property="Panel.ZIndex" Value="1"/>
|
||||||
|
<Setter Property="Foreground" Value="OrangeRed"/>
|
||||||
|
</Trigger>
|
||||||
|
</Style.Triggers>-->
|
||||||
</Style>
|
</Style>
|
||||||
</Grid.Resources>
|
</Grid.Resources>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue