随笔分类 - Windows phone 7
WP7的开发相关
摘要:A customer just asked the question how to scroll a ScrollViewer at design time in Blend to manually design content for it that goes beyond the visible viewport size.The immediate short answer to this ...
阅读全文
摘要:For one of the apps I have been working on, I needed to persist a List<T> of T objects across sessions. They are simple objects with simple properties, so I decided to use XML. However, since WP...
阅读全文
摘要:先卸载旧版本的Developer tools,然后再安装。如果你的visual studio 2010 不是RTM版的,那么需要重新安装VS2010.http://www.microsoft.com/downloads/en/details.aspx?FamilyID=04704acf-a63a-4f97-952c-8b51b34b00ce&displaylang=en
阅读全文
摘要:http://www.microsoft.com/downloads/en/details.aspx?FamilyID=04704acf-a63a-4f97-952c-8b51b34b00ce&displaylang=enWindows Phone Developer Tools RTM Release Notes09/16/2010These are the release notes ...
阅读全文
摘要:Silverlight 中的所有尺寸都是以像素为单位,FontSize也不例外。当你定义FontSize = "36"时,意味着你得到了一个字体,这个字体从字母上沿到字母下沿的尺寸是36个像素。传统上,字体尺寸是以点(Points)为单位的。在经典的凸版印刷中,一个点非常接近于1/72英寸,但是在数字印刷中,点经常被假定成确定的1/72英寸。一个大小为72点的字体从字符顶端至底端大约是1英寸。如何...
阅读全文
摘要:Just add it to the .csproj like you normally would. The UI just isn’t there.For instance, in your release build, <SignAssembly>True</SignAssembly> <AssemblyOriginatorKeyFile>.....
阅读全文
摘要:Both controlsItems can be added in XAML Items can be added in code, Items.Add(new PivotItem(…)) or Items.Add(new PanoramaItem(…)) ItemsSource can be used for data binding Do not support al...
阅读全文
摘要:照片应用程序可扩展性允许开发人员将自己的照片应用程序与内嵌的windows phone的内置照片应用程序无缝集成。 通过SPV中的extras菜单项,最终用户可以轻松访问自己的应用程序而无需离开windows phone的主照片应用程序。 这将有助于防止在SPV以外试图改变照片而造成不必要的混淆。 这种在内置照片应用内的扩展性将为用户和照片体验之间更直接、 直观的互动铺平道路。SPV允许应用程序使...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//createimagesourceStreamstream=file.OpenRead();BitmapImagebmpImg=newBitmapImage();bmpImg.SetSource(...
阅读全文
摘要:If you started playing with the Windows Phone 7 beta you may be aware that the only storage you have to play with is isolated storage. However, what happens if you take a photo in your application (ie...
阅读全文
摘要:首先要引用相关的名字空间:using Microsoft.Phone.Tasks;然后在Page里定义一个变量:CameraCaptureTaskcameraCaptureTask;然后要在Page的Constructor里添加实例化和关联Completed事件处理方法:cameraCaptureTask=newCameraCaptureTask();cameraCaptureTask.Compl...
阅读全文
摘要:Frame 和 NavigationWindow 是称为导航宿主的类。“导航宿主”是可以作为导航目标并显示内容的类。为了实现这一点,每个导航宿主都使用自己 NavigationService 和日记。导航宿主的基本构造如下图所示。 实质上,这样,NavigationWindow 和 Frame 就可以提供 XBAP 承载在浏览器中时所提供的导航支持。除了使用 Navigat...
阅读全文
摘要:(本文档是WPF的帮助文档,但大部分内容也适用于WP7)导航服务虽然 Hyperlink 允许用户发起转向特定 Page 的导航,但是定位和下载该页的工作仍由 NavigationService 类执行。从根本上说,NavigationService 提供了代表客户端代码(如 Hyperlink)处理导航请求的功能。此外,对于跟踪和影响导航请求,NavigationService 实现了更高级别的...
阅读全文
摘要:除了使用NavigationService.Navigate()进行页面导航外,还可以直接在Xaml中使用超链接导航。从一页导航到另一页最简单的方法是使用 Hyperlink。通过下面的标记中所示的 Hyperlink 元素,可以以声明方式将 Hyperlink 添加到 Page。代码Code highlighting produced by Actipro CodeHighlighter (fr...
阅读全文
摘要:1. 有关NavigationService的函数调用语句不能放到页面的构造函数里,否则会提示对象空引用异常。 例如:NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.RelativeOrAbsolute)); 同样,如果想取得this.NavigationContext.QueryString也是会报错的。 这些语句不能直接...
阅读全文
摘要:在XAML中使用应用程序定义指定起始Page(它是启动 WindowsPhone7程序时自动加载的Page)。
指定方法是将 StartupUri 属性设置为所需的 Page 的 统一资源标识符 (URI)。
可以在标记中以声明方式设置 StartupUri,如下面的示例所示。
阅读全文

浙公网安备 33010602011771号