-
Notifications
You must be signed in to change notification settings - Fork 0
/
SearchMainPage.xaml
99 lines (93 loc) · 6.28 KB
/
SearchMainPage.xaml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<phone:PhoneApplicationPage
x:Class="WindowsPhone7App.SearchMainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="Portrait" Orientation="Portrait"
shell:SystemTray.IsVisible="True" >
<!-- Loaded="MainPage_OnLoaded"-->
<Grid x:Name="LayoutRoot" Background="Transparent">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
<TextBlock x:Name="ApplicationTitle" Text="高德 Search API for Windows Phone7 SDK V1.0" Style="{StaticResource PhoneTextNormalStyle}"/>
<TextBlock x:Name="PageTitle" FontSize="28" Text="查询示例" Margin="9,20,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
</StackPanel>
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,-17,12,0" >
<ScrollViewer>
<StackPanel Orientation="Horizontal">
<Grid Height="653" Name="grid1" Width="457">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="65" />
<ColumnDefinition Width="417" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Image Style="{StaticResource ImageMainStyle}" ></Image>
<HyperlinkButton NavigateUri="/SearchSamples/RGCSearch.xaml"
Style="{StaticResource HyperlinkEmptyStyle}" Grid.Column="1" Grid.Row="0">
<TextBlock Style="{StaticResource TextBlockMainStyle}" Text="定位"/>
</HyperlinkButton>
<Image Style="{StaticResource ImageMainStyle}" Grid.Column="0" Grid.Row="1"></Image>
<HyperlinkButton NavigateUri="/SearchSamples/POISearch.xaml"
Style="{StaticResource HyperlinkEmptyStyle}" Grid.Column="1" Grid.Row="1">
<TextBlock Style="{StaticResource TextBlockMainStyle}" Text="POI查询" />
</HyperlinkButton>
<Image Style="{StaticResource ImageMainStyle}" Grid.Column="0" Grid.Row="2" ></Image>
<HyperlinkButton NavigateUri="/SearchSamples/BusLineSearch.xaml"
Style="{StaticResource HyperlinkEmptyStyle}" Grid.Column="1" Grid.Row="2">
<TextBlock Style="{StaticResource TextBlockMainStyle}" Text="公交线路查询"/>
</HyperlinkButton>
<Image Style="{StaticResource ImageMainStyle}" Grid.Column="0" Grid.Row="3"></Image>
<HyperlinkButton NavigateUri="/SearchSamples/BusRouteSearch.xaml"
Style="{StaticResource HyperlinkEmptyStyle}" Grid.Column="1" Grid.Row="3">
<TextBlock Style="{StaticResource TextBlockMainStyle}" Text="公交换乘查询" />
</HyperlinkButton>
<Image Style="{StaticResource ImageMainStyle}" Grid.Column="0" Grid.Row="4"></Image>
<HyperlinkButton NavigateUri="/SearchSamples/RouteSearch.xaml"
Style="{StaticResource HyperlinkEmptyStyle}" Grid.Column="1" Grid.Row="4">
<TextBlock Style="{StaticResource TextBlockMainStyle}" Text="驾车查询" />
</HyperlinkButton>
<Image Style="{StaticResource ImageMainStyle}" Grid.Column="0" Grid.Row="5"></Image>
<HyperlinkButton NavigateUri="/SearchSamples/GeoCode.xaml"
Style="{StaticResource HyperlinkEmptyStyle}" Grid.Column="1" Grid.Row="5">
<TextBlock Style="{StaticResource TextBlockMainStyle}" Text="地理编码" />
</HyperlinkButton>
<Image Style="{StaticResource ImageMainStyle}" Grid.Column="0" Grid.Row="6"></Image>
<HyperlinkButton NavigateUri="/SearchSamples/ReGeoCode.xaml"
Style="{StaticResource HyperlinkEmptyStyle}" Grid.Column="1" Grid.Row="6">
<TextBlock Style="{StaticResource TextBlockMainStyle}" Text="反向地理编码" />
</HyperlinkButton>
</Grid>
</StackPanel>
</ScrollViewer>
</Grid>
<!--
<Canvas Width="50" Height="80" Mapabc:MapLayer.LngLat="47.620574,-122.34942" Mapabc:MapLayer.Anchor="0.5,0.5">
<Path Data="M 0,0 L 50,0 50,50 25,80 0,50 0,0" Fill="Red" Stroke="Wheat" StrokeThickness="2" />
<TextBlock FontSize="10" Foreground="White" Margin="5" TextAlignment="Center">
Space <LineBreak />
Needle <LineBreak />
</TextBlock>
</Canvas>-->
</Grid>
</phone:PhoneApplicationPage>