Skip to content

Commit

Permalink
began working on GUI. Added Buttons to GUI. Added Map to GUI.
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiNoSenshi committed Nov 11, 2012
1 parent a85c6d9 commit ebcfda2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 43 deletions.
Binary file added additionalStuff/paperPrototyp.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 7 additions & 5 deletions wp8WlanLogger/wp8WlanLogger/MainPage.xaml
@@ -1,16 +1,17 @@
<phone:PhoneApplicationPage
x:Class="wp8WlanLogger.MainPage"
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"
xmlns:maps="clr-namespace:Microsoft.Phone.Maps.Controls;assembly=Microsoft.Phone.Maps"
x:Class="wp8WlanLogger.MainPage"
mc:Ignorable="d"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="Portrait" Orientation="Portrait"
SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
shell:SystemTray.IsVisible="True">

<!--LayoutRoot is the root grid where all page content is placed-->
Expand Down Expand Up @@ -41,13 +42,14 @@

<!--TitlePanel contains the name of the application and page title-->
<StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
<TextBlock Text="MY APPLICATION" Style="{StaticResource PhoneTextNormalStyle}" Margin="12,0"/>
<TextBlock Text="page name" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
<TextBlock Text="WLAN LOGGER" Style="{StaticResource PhoneTextNormalStyle}" Margin="12,0"/>
</StackPanel>

<!--ContentPanel - place additional content here-->
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">

<Button x:Name="onOff" Content="ON" HorizontalAlignment="Center" Margin="80,10,238,0" VerticalAlignment="Top" Height="106" Width="130"/>
<Button x:Name="Sync" Content="Sync" HorizontalAlignment="Center" Margin="241,10,80,0" VerticalAlignment="Top" Height="106" Width="144"/>
<maps:Map x:Name="Map" Margin="0,121,0,0" LandmarksEnabled="False" Loaded="map_Loaded"/>
</Grid>

<!--Uncomment to see an alignment grid to help ensure your controls are
Expand Down
11 changes: 11 additions & 0 deletions wp8WlanLogger/wp8WlanLogger/MainPage.xaml.cs
Expand Up @@ -8,6 +8,8 @@
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using wp8WlanLogger.Resources;
using Microsoft.Phone.Maps;


namespace wp8WlanLogger
{
Expand All @@ -21,6 +23,15 @@ public MainPage()
// Sample code to localize the ApplicationBar
//BuildLocalizedApplicationBar();
}

// Placeholder code to contain the ApplicationID and AuthenticationToken
// that must be obtained online from the Windows Phone Dev Center
// before publishing an app that uses the Map control.
private void map_Loaded(object sender, RoutedEventArgs e)
{
MapsSettings.ApplicationContext.ApplicationId = "<applicationid>";
MapsSettings.ApplicationContext.AuthenticationToken = "<authenticationtoken>";
}

// Sample code for building a localized ApplicationBar
//private void BuildLocalizedApplicationBar()
Expand Down
38 changes: 0 additions & 38 deletions wp8WlanLogger/wp8WlanLogger/Properties/WMAppManifest.xml

This file was deleted.

0 comments on commit ebcfda2

Please sign in to comment.