-
Notifications
You must be signed in to change notification settings - Fork 722
Expand file tree
/
Copy pathMapControlPage.xaml
More file actions
61 lines (59 loc) · 2.72 KB
/
MapControlPage.xaml
File metadata and controls
61 lines (59 loc) · 2.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!--
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
//
//*********************************************************
-->
<Page
x:Class="WinUIGallery.ControlPages.MapControlPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:WinUIGallery.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<StackPanel>
<TextBlock Margin="0,0,0,12" TextWrapping="Wrap">
<Span xml:space="preserve"><Run>Follow instructions </Run> <Hyperlink NavigateUri="https://learn.microsoft.com/azure/azure-maps/how-to-manage-account-keys">here</Hyperlink><Run> to obtain your MapServiceToken.</Run></Span>
</TextBlock>
<Image
Height="320"
HorizontalAlignment="Left"
AutomationProperties.AccessibilityView="Raw"
Source="/Assets/SampleMedia/MapExample.png" />
<controls:ControlExample
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch"
CSharpSource="MapControl\MapControlSample_cs.txt"
HeaderText="Showing a pin on the map">
<controls:ControlExample.Example>
<StackPanel Spacing="12">
<StackPanel Orientation="Horizontal" Spacing="8">
<PasswordBox
x:Name="MapToken"
MinWidth="200"
AutomationProperties.Name="Map service token"
KeyDown="MapToken_KeyDown"
PlaceholderText="Map service token" />
<Button Click="Button_Click" Content="Set token" />
</StackPanel>
<MapControl
x:Name="map1"
Height="400"
HorizontalAlignment="Stretch"
AutomationProperties.Name="Map" />
</StackPanel>
</controls:ControlExample.Example>
<controls:ControlExample.Xaml>
<x:String xml:space="preserve">
<MapControl x:Name="map1" MapServiceToken="MapServiceToken" Height="600"/>
</x:String>
</controls:ControlExample.Xaml>
</controls:ControlExample>
</StackPanel>
</Page>