mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-04 14:08:32 +00:00
Move LocationMemberPath to MapItemsControl
This commit is contained in:
parent
65c93d1a3e
commit
d8656c99a4
3 changed files with 43 additions and 20 deletions
|
|
@ -13,7 +13,6 @@
|
|||
|
||||
<Style x:Key="PointItemStyle" TargetType="map:MapItem">
|
||||
<Setter Property="AutoCollapse" Value="True"/>
|
||||
<Setter Property="LocationMemberPath" Value="Location"/>
|
||||
<Setter Property="FontSize" Value="12"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
|
|
@ -68,7 +67,6 @@
|
|||
|
||||
<Style x:Key="PushpinItemStyle" TargetType="map:MapItem">
|
||||
<Setter Property="AutoCollapse" Value="True"/>
|
||||
<Setter Property="LocationMemberPath" Value="Location"/>
|
||||
<Setter Property="HorizontalAlignment" Value="Center"/>
|
||||
<Setter Property="VerticalAlignment" Value="Bottom"/>
|
||||
<Setter Property="Template">
|
||||
|
|
@ -99,10 +97,12 @@
|
|||
|
||||
<map:MapItemsControl ItemsSource="{Binding Points}"
|
||||
ItemContainerStyle="{StaticResource PointItemStyle}"
|
||||
LocationMemberPath="Location"
|
||||
SelectionMode="Extended"/>
|
||||
|
||||
<map:MapItemsControl ItemsSource="{Binding Pushpins}"
|
||||
ItemContainerStyle="{StaticResource PushpinItemStyle}"/>
|
||||
ItemContainerStyle="{StaticResource PushpinItemStyle}"
|
||||
LocationMemberPath="Location"/>
|
||||
|
||||
<map:Pushpin AutoCollapse="True" Content="N 53°30' E 8°12'">
|
||||
<map:Pushpin.Location>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue