mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 23:15:14 +00:00
Avalonia sample application namespace
This commit is contained in:
parent
8d0f618f2a
commit
d9ef169d56
6 changed files with 32 additions and 7 deletions
|
|
@ -3,8 +3,8 @@
|
|||
xmlns:md="clr-namespace:Markdown.Avalonia;assembly=Markdown.Avalonia"
|
||||
xmlns:map="clr-namespace:MapControl;assembly=MapControl.Avalonia"
|
||||
xmlns:tools="clr-namespace:MapControl.UiTools;assembly=MapUiTools.Avalonia"
|
||||
xmlns:local="clr-namespace:AvaloniaApp"
|
||||
x:Class="AvaloniaApp.MainWindow"
|
||||
xmlns:local="clr-namespace:SampleApplication"
|
||||
x:Class="SampleApplication.MainWindow"
|
||||
Title="MainWindow">
|
||||
<Grid>
|
||||
<map:Map x:Name="map"
|
||||
|
|
@ -12,6 +12,26 @@
|
|||
Center="53.5,8.2"
|
||||
DoubleTapped="OnMapDoubleTapped">
|
||||
|
||||
<ItemsControl ItemsSource="{Binding Pushpins}">
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<map:MapPanel/>
|
||||
</ItemsPanelTemplate>
|
||||
</ItemsControl.ItemsPanel>
|
||||
<ItemsControl.Styles>
|
||||
<Style Selector="ContentPresenter">
|
||||
<Setter Property="HorizontalAlignment" Value="Center"/>
|
||||
<Setter Property="VerticalAlignment" Value="Bottom"/>
|
||||
<Setter Property="map:MapPanel.Location" Value="{Binding Location}"/>
|
||||
</Style>
|
||||
</ItemsControl.Styles>
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<map:Pushpin Content="{Binding Name}"/>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
|
||||
<map:MapPath Location="53.5,8.2" Stroke="Blue" StrokeThickness="3" Fill="#1F007F00">
|
||||
<map:MapPath.Data>
|
||||
<EllipseGeometry RadiusX="1852" RadiusY="1852"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue