随笔分类 -  Windows Phone

在windows phone 中使用panorama
摘要:1.在References中添加引用:Microsoft.Phone.Controls 2.在xaml的头部添加: xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" 3.替换默认的Grid: <Grid x:Name="ContentPanel" Grid.Ro... 阅读全文

posted @ 2012-08-14 09:54 冰危节奏 阅读(211) 评论(0) 推荐(0)

Window Phone ListBox的DataBinding:
摘要:<ListBox x:Name="lstTrips" ItemsSource="{Binding}" > <ListBox.ItemTemplate> <DataTemplate> <StackPanel> ... 阅读全文

posted @ 2012-08-07 15:47 冰危节奏 阅读(178) 评论(0) 推荐(0)

windows Phone 后退键历史的清除
摘要:protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e) { base.OnNavigatedTo(e); while (NavigationService.CanGoBack) ... 阅读全文

posted @ 2012-08-07 15:44 冰危节奏 阅读(307) 评论(0) 推荐(0)

windows phone下进行Isolated的IO读写
摘要:using (System.IO.IsolatedStorage.IsolatedStorageFile isf = System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForApplication()) { if (isf.FileExists(fileName)) ... 阅读全文

posted @ 2012-08-02 17:30 冰危节奏 阅读(260) 评论(0) 推荐(0)

windows phone不同页面间传值
摘要:在windows phone中,不同页面间传值是用以下代码就可以了 PhoneApplicationService.Current.State[“strKey”] 我自己封装的代码: TripDealer.cs: using System; using System.Net; using System.Windows; using System.Windows.Contro... 阅读全文

posted @ 2012-08-01 14:06 冰危节奏 阅读(228) 评论(0) 推荐(0)

OnBackKeyPress 后退键的禁止
摘要:protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e) { base.OnBackKeyPress(e); if (!MessageBox.Show("Are you sure to give up current Tr... 阅读全文

posted @ 2012-07-24 17:01 冰危节奏 阅读(242) 评论(0) 推荐(0)

windows phone 中设置Application Bar
摘要:App.xaml: <Application.Resources> <shell:ApplicationBar x:Key=”MainAppBar” IsVisible=”True”> <shell:ApplicationBar.MenuItems> <shell:ApplicationBarMenuItem Text=”About” Cli... 阅读全文

posted @ 2012-07-05 17:53 冰危节奏 阅读(254) 评论(0) 推荐(0)

Windows phone 未处理异常的 错误报告页面
摘要:1.创建ErrorPage页面,增加如下代码: public static Exception Exception; // Executes when the user navigates to this page. protected override void OnNavigatedTo(NavigationEventArgs e) ... 阅读全文

posted @ 2012-06-27 14:57 冰危节奏 阅读(396) 评论(0) 推荐(0)

Windows phone 中的Grid布局
摘要:<!--ContentPanel - place additional content here--> <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> <Grid.RowDefinitions> <RowDefinitio... 阅读全文

posted @ 2012-06-27 11:44 冰危节奏 阅读(746) 评论(0) 推荐(0)

导航