You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2012/01/12 20:30:14 UTC
[19/51] [abbrv] git commit: cleanup example proj
cleanup example proj
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/commit/c03fa328
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/tree/c03fa328
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/diff/c03fa328
Branch: refs/heads/master
Commit: c03fa328c795b20a9da48c05d9dd8fe86f1f2425
Parents: c90af86
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Thu Dec 15 16:21:39 2011 -0800
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Thu Dec 15 16:21:39 2011 -0800
----------------------------------------------------------------------
example/MainPage.xaml | 13 ++++++++-----
example/MainPage.xaml.cs | 19 -------------------
2 files changed, 8 insertions(+), 24 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/c03fa328/example/MainPage.xaml
----------------------------------------------------------------------
diff --git a/example/MainPage.xaml b/example/MainPage.xaml
index 944db22..8484473 100644
--- a/example/MainPage.xaml
+++ b/example/MainPage.xaml
@@ -9,13 +9,16 @@
mc:Ignorable="d" FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
- SupportedOrientations="Portrait" Orientation="Portrait"
+ SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
shell:SystemTray.IsVisible="True" d:DesignHeight="768" d:DesignWidth="480" xmlns:my="clr-namespace:WP7GapClassLib;assembly=WP7GapClassLib">
<Grid x:Name="LayoutRoot" >
-
- <my:PGView Name="pGView1" HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"></my:PGView>
-
+ <Grid.RowDefinitions>
+ <RowDefinition Height="*"/>
+ </Grid.RowDefinitions>
+ <my:PGView HorizontalAlignment="Stretch"
+ Margin="0,0,0,0"
+ Name="PGView"
+ VerticalAlignment="Stretch" />
</Grid>
</phone:PhoneApplicationPage>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/c03fa328/example/MainPage.xaml.cs
----------------------------------------------------------------------
diff --git a/example/MainPage.xaml.cs b/example/MainPage.xaml.cs
index 2ea0168..106331a 100644
--- a/example/MainPage.xaml.cs
+++ b/example/MainPage.xaml.cs
@@ -27,25 +27,6 @@ namespace GapExample
private void GapBrowser_Loaded(object sender, RoutedEventArgs e)
{
- //var rs = Application.GetResourceStream(new Uri("www", UriKind.Relative));
-
- ////StreamReader sr = new StreamReader(rs.Stream);
- ////GapBrowser.NavigateToString(sr.ReadToEnd());
-
- //Uri indexUri = new Uri("www/index.html", UriKind.Relative);
-
- //StreamResourceInfo streamInfo = Application.GetResourceStream(indexUri);
- //if (streamInfo != null)
- //{
- // StreamReader sr = new StreamReader(streamInfo.Stream);
- // GapBrowser.NavigateToString(sr.ReadToEnd());
- //}
-
- //GapBrowser.Source = baseUri;
-
- //Uri uri = new Uri("/www/images/ArrowImg.png", UriKind.Relative);
- //BitmapImage imgSource = new BitmapImage(uri);
- //this.myImage.Source = imgSource;
}
}