2020-09-03 01:06:51 +02:00
|
|
|
<ResourceDictionary
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:map="using:MapControl">
|
2012-11-22 21:42:29 +01:00
|
|
|
<Style TargetType="map:MapItemsControl">
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate>
|
|
|
|
|
<ItemsPresenter/>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
<Setter Property="ItemsPanel">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ItemsPanelTemplate>
|
|
|
|
|
<map:MapPanel/>
|
|
|
|
|
</ItemsPanelTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
<Style TargetType="map:MapItem">
|
|
|
|
|
<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-11-22 21:42:29 +01:00
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="map:MapItem">
|
|
|
|
|
<ContentPresenter Content="{TemplateBinding Content}"
|
|
|
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
2020-09-03 01:06:51 +02:00
|
|
|
ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
|
2012-11-22 21:42:29 +01:00
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
<Style TargetType="map:Pushpin">
|
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Bottom"/>
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Stretch"/>
|
|
|
|
|
<Setter Property="Padding" Value="3"/>
|
2014-10-19 21:50:23 +02:00
|
|
|
<Setter Property="Foreground" Value="Black"/>
|
2012-11-22 21:42:29 +01:00
|
|
|
<Setter Property="Background" Value="White"/>
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="map:Pushpin">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition/>
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Rectangle Fill="{TemplateBinding Background}"/>
|
|
|
|
|
<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}"
|
2020-09-03 01:06:51 +02:00
|
|
|
ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
|
2012-11-22 21:42:29 +01:00
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
</ResourceDictionary>
|