Avalonia MapItemsControl

This commit is contained in:
ClemensFischer 2024-05-27 16:35:02 +02:00
parent 39e00b30d9
commit e9e0393074
11 changed files with 206 additions and 68 deletions

View file

@ -2,6 +2,24 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:map="clr-namespace:MapControl">
<!-- Style replaced by TemplateProperty and ItemsPanelProperty default value overrides -->
<!--
<Style Selector="map|MapItemsControl">
<Setter Property="Template">
<ControlTemplate>
<ItemsPresenter ItemsPanel="{TemplateBinding ItemsPanel}"/>
</ControlTemplate>
</Setter>
<Setter Property="ItemsPanel">
<Setter.Value>
<ItemsPanelTemplate>
<map:MapPanel/>
</ItemsPanelTemplate>
</Setter.Value>
</Setter>
</Style>
-->
<Style Selector="map|MapContentControl">
<Setter Property="Background" Value="{Binding Background, RelativeSource={RelativeSource AncestorType=map:MapBase}}"/>
<Setter Property="BorderBrush" Value="{Binding Foreground, RelativeSource={RelativeSource AncestorType=map:MapBase}}"/>