2014-11-19 21:11:14 +01:00
|
|
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
2013-08-17 08:41:11 +02:00
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2012-11-22 21:42:29 +01:00
|
|
|
xmlns:map="clr-namespace:MapControl">
|
|
|
|
|
<Style TargetType="map:MapItemsControl">
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate>
|
|
|
|
|
<ItemsPresenter/>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
2012-04-25 22:02:53 +02:00
|
|
|
<Setter Property="ItemsPanel">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ItemsPanelTemplate>
|
|
|
|
|
<map:MapPanel/>
|
|
|
|
|
</ItemsPanelTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
2012-11-22 21:42:29 +01:00
|
|
|
<Style TargetType="map:MapItem">
|
2018-11-10 22:38:46 +01:00
|
|
|
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
|
2012-11-22 21:42:29 +01:00
|
|
|
<Setter Property="HorizontalAlignment" Value="Stretch"/>
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Stretch"/>
|
2017-02-05 18:35:30 +01:00
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Stretch"/>
|
2012-06-13 17:33:23 +02:00
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
2012-11-22 21:42:29 +01:00
|
|
|
<ControlTemplate TargetType="map:MapItem">
|
2012-06-13 17:33:23 +02:00
|
|
|
<ContentPresenter Content="{TemplateBinding Content}"
|
|
|
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
2012-11-22 21:42:29 +01:00
|
|
|
<Style TargetType="map:Pushpin">
|
2012-04-25 22:02:53 +02:00
|
|
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Bottom"/>
|
2012-11-22 21:42:29 +01:00
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Stretch"/>
|
2012-04-25 22:02:53 +02:00
|
|
|
<Setter Property="Padding" Value="3"/>
|
2014-10-19 21:50:23 +02:00
|
|
|
<Setter Property="Foreground" Value="Black"/>
|
2012-04-25 22:02:53 +02:00
|
|
|
<Setter Property="Background" Value="White"/>
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
2012-11-22 21:42:29 +01:00
|
|
|
<ControlTemplate TargetType="map:Pushpin">
|
2012-04-25 22:02:53 +02:00
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition/>
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Rectangle Fill="{TemplateBinding Background}"/>
|
2012-11-22 21:42:29 +01:00
|
|
|
<Path Grid.Row="1" Fill="{TemplateBinding Background}" Data="M 0,-0.5 L 0,16 16,-0.5"/>
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding Content}"
|
|
|
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
2012-04-25 22:02:53 +02:00
|
|
|
</Grid>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
</ResourceDictionary>
|