随笔分类 - Windows Phone 7
Windows Phone 7
摘要:http://souldoor.codeplex.com/
阅读全文
摘要:WP7中页面间传值:WP7页面间传值跟普通的web页面间的传值很类似。this.NavigationService.Navigate(new Uri("/Page1.xaml?pagetitle=hello", UriKind.Relative));另一个页面取值:this.PageTitle.Text = NavigationContext.QueryString["pagetitle"].ToString();当然可以直接利用应用程序状态来存值:PhoneApplicationService.Current.State["key"
阅读全文
摘要:打开数据库:SQLiteConnection db = null;private string fileName = "System.DB";if (db == null){ db = new SQLiteConnection(fileName); db.Open(); } 建表:SQLiteCommand cmd = db.CreateCommand("Create table Banji (ClassNumber text,Teacher text,Introduction text)");int i = cmd.ExecuteNonQuery();
阅读全文
摘要:http://msdn.microsoft.com/zh-cn/magazine/cc721608.aspx使用 XAML 和 Expression Blend 创建动画Lawrence Moroney本文将介绍以下内容:基本转换和合并的转换使用触发器和事件线性关键帧动画和离散关键帧动画使用 Expression Blend 制作动画本文使用以下技术:Silverlight 2、Expression Blend本文基于 Silverlight 2 的预发布版本。文中的所有信息均有可能发生变更。本文是根据 Laurence Moroney 的《Microsoft Silverlight 2 简介
阅读全文
摘要:public static class Utils { public static BitmapImage GetImage(string filename) { string imgLocation = Application.Current.Resources["ImagesLocation"].ToString(); StreamResourceInfo imageResource = Application.GetResourceStream(new Uri(imgLocation + filenam...
阅读全文
摘要://注册事件PhoneApplicationFrame frame = Application.Current.RootVisual as PhoneApplicationFrame; //离开页面事件触发(如来电)if (frame != null){ frame.Obscured += new EventHandler<ObscuredEventArgs>(frame_Obscured); frame.Unobscured += new EventHandler(frame_Unobscured);}
阅读全文
摘要:Tile的使用:Tile和Toast的push notification使用同样的命名空间:using Microsoft.Phone.Shell;接着产生ShellTile和StandardTileData对象如下(以下是在MainPage的构造函数中实现):StandardTileData tileData = new StandardTileData(){ Title = "Title", Count = 1, BackTitle = "BackTitle", BackContent = "BackContent",};fore
阅读全文
摘要:http://www.codeproject.com/KB/windows-phone-7/
阅读全文
摘要:http://stackoverflow.com/questions/tagged/windows-phone-7
阅读全文
摘要:http://dotnet.dzone.com/articles/how-you-can-add-customWe all know that Windows Phone 7 doesn't carry support ringtone modifications (not by default). This can be a bit frustrating for people who don't like any of the 30 pre-loaded tunes (although it's probably hard to find one). In this
阅读全文
摘要:http://wp7tiletoolkit.codeplex.com/
阅读全文
摘要:stackPanel.Background = (Brush)Resources["PhoneAccentBrush"];
阅读全文
摘要:http://www.code-magazine.com/articleprint.aspx?quickid=1109071&printmode=true
阅读全文
摘要:NavigationService.Navigate(new Uri(string.Format(NavigationService.Source + "?RefreshRandom={0}", Guid.NewGuid()), UriKind.RelativeOrAbsolute));
阅读全文
摘要:http://www.189works.com/article-41287-1.html
阅读全文
摘要:http://www.189works.com/article-41275-1.html
阅读全文
摘要:Xaml:<StackPanel x:Name="stackPanel_PopupMessageBox" HorizontalAlignment="Left" Height="800" VerticalAlignment="Top" Width="480"> <StackPanel Height="216" Background="#FF494444"> <TextBlock TextWrapping="Wrap&q
阅读全文
摘要:最近审查的时候遇到一个问题,研究很久才解决,原来是一个小问题就是MessageBox原来的代码是这样的,在没有输入IP的时候提示用户并跳转到配置页面。MessageBox.Show("使用前请先设置接收端IP");GoToConfig();//跳转到配置页面如果在WPF之类的写这样的代码没有什么大问题,但是WP7里面问题就出现了。在MessageBox的模态窗口打开的时候按一下“开始菜单”Win键会发生意想不到的情况就是MessageBox的模块窗口会被关闭,并且返回MessageBoxResult.None然后继续执行GoToConfig();但是现在界面以及切换到开始屏
阅读全文
摘要:// Create the popup object.Popup p = new Popup();privatevoid showPopup_Click(object sender, RoutedEventArgs e){ // Create some content to show in the popup. Typically you would // create a user control. Border border = new Border(); border.BorderBrush = new SolidColorBrush(Colors.Black); ...
阅读全文
摘要:<ListBox HorizontalAlignment="Left" Margin="0,605,0,0" Name="listBox1" Width="456" UseLayoutRounding="True" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Disabled"> <ListBo
阅读全文
浙公网安备 33010602011771号