mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-04 14:08:32 +00:00
MapItemsControl SelectedItem
This commit is contained in:
parent
ec13e13af7
commit
1aa233bc79
4 changed files with 36 additions and 15 deletions
|
|
@ -17,6 +17,8 @@
|
|||
DoubleTapped="OnMapDoubleTapped">
|
||||
|
||||
<map:MapItemsControl ItemsSource="{Binding Pushpins}"
|
||||
SelectedItem="{Binding SelectedPushpin}"
|
||||
SelectionMode="Multiple"
|
||||
DoubleTapped="OnMapItemsControlDoubleTapped">
|
||||
<map:MapItemsControl.Styles>
|
||||
<Style Selector="map|MapItem">
|
||||
|
|
@ -29,7 +31,7 @@
|
|||
</ControlTemplate>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style Selector="map|MapItem[IsSelected=True]">
|
||||
<Style Selector="map|MapItem:selected">
|
||||
<Setter Property="Foreground" Value="OrangeRed"/>
|
||||
</Style>
|
||||
</map:MapItemsControl.Styles>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue