|
<Page
x:Class="Bing_Map_Navigation.MainPage"
IsTabStop="false"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Bing_Map_Navigation"
xmlns:Maps="using:Bing.Maps"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="300"/>
</Grid.ColumnDefinitions>
<Maps:Map x:Name="MyMap" Credentials="AnxH9JN69p3VpZB5pclkoQx6AVKhnlHK9QKxDe2bJz4_yubptSYff2gPr6eTC_bD" Grid.Column="0"/>
<StackPanel Grid.Column="1">
<StackPanel>
<RadioButton x:ConnectionId='2' x:Name="rdLocation" Content="By Locations" GroupName="Nav" IsChecked="True" />
<RadioButton x:ConnectionId='3' x:Name="rdCoord" Content="By Coordinates" GroupName="Nav" />
</StackPanel>
<Grid x:Name="grdCoord" Margin="0,20,0,0" Visibility="Collapsed">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock Text="From Coordinate :" Grid.Row="0" FontSize="20"/>
<TextBlock Text="To Coordinate :" Grid.Row="2" FontSize="20"/>
<TextBox x:Name="txtFromCoord" Text="23.02799224,72.59412384" Grid.Row="1" Margin="0,10,0,0"/>
<TextBox x:Name="txtToCoord" Text="19.07279968,72.88259887" Grid.Row="3" Margin="0,10,0,0"/>
</Grid>
<Grid x:Name="grdLocation" Margin="0,20,0,0">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock Text="From Location :" Grid.Row="0" FontSize="20"/>
<TextBlock Text="To Location :" Grid.Row="2" FontSize="20"/>
<TextBox x:Name="txtFromLocation" Text="Ahmedabad" Grid.Row="1" Margin="0,10,0,0"/>
<TextBox x:Name="txtToLocation" Text="Mumbai" Grid.Row="3" Margin="0,10,0,0"/>
</Grid>
<Button x:ConnectionId='1' x:Name="btnGiveDirections" Content="Give Directions" Margin="0,20,0,0" />
<TextBlock x:Name="tbError" FontSize="20" Margin="0,20,0,0" />
</StackPanel>
</Grid>
</Page>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Leading a passionate team to build metadata driven generic IoT Platform using for the operating companies (OpCos) of a Fortune 500 American conglomerate manufacturer of industrial products having annual revenue over $7 billion. Willing to join product-based and SaaS companies having production workloads and serving end customers happily.