MapItemsControl SelectionMode

This commit is contained in:
ClemensFischer 2024-05-29 16:29:13 +02:00
parent c4c5d2d1df
commit 5a738f7a71
7 changed files with 15 additions and 32 deletions

View file

@ -16,7 +16,7 @@
ManipulationModes="All"
DoubleTapped="OnMapDoubleTapped">
<map:MapItemsControl ItemsSource="{Binding Pushpins}" SelectionMode="Multiple">
<map:MapItemsControl ItemsSource="{Binding Pushpins}">
<map:MapItemsControl.Styles>
<Style Selector="map|MapItem">
<Setter Property="map:MapPanel.Location" Value="{Binding Location}"/>

View file

@ -168,7 +168,7 @@
<map:MapItemsControl ItemsSource="{Binding Points}"
ItemContainerStyle="{StaticResource PointItemStyle}"
LocationMemberPath="Location"
SelectionMode="Extended"/>
SelectionMode="Multiple"/>
<map:MapItemsControl ItemsSource="{Binding Pushpins}"
ItemContainerStyle="{StaticResource PushpinItemStyle}"

View file

@ -132,7 +132,7 @@
<map:MapItemsControl ItemsSource="{Binding Points}"
ItemContainerStyle="{StaticResource PointItemStyle}"
SelectionMode="Extended"/>
SelectionMode="Multiple"/>
<map:MapItemsControl ItemsSource="{Binding Pushpins}"
ItemContainerStyle="{StaticResource PushpinItemStyle}"/>