2012年9月4日

metro style 里面的控件一览 以 Windows.UI.Xaml.Controls空间

摘要: ClassDescriptionAppBarRepresents the container control that holds app UI components for commanding and experiences.BorderDraws a border, background, or both, around another object.ButtonRepresents a templated button control that interprets a Click user interaction.CanvasDefines an area within which 阅读全文

posted @ 2012-09-04 16:25 GIS-MAN 阅读(1412) 评论(0) 推荐(0) 编辑

metro style app 的程序构成 以c# 为例

摘要: windows rt (windows 运行时) 这个一定有,还有.NET Framework 提供托管类型的子集,该子集可通过 C# 或 Visual Basic 创建用于 Windows 的 Metro 风格应用程序。这个托管类型子集名为.NET for Windows Store apps,允许 .NET Framework 开发人员在熟悉的编程框架中创建 Metro 风格应用程序托管类型位于以System开头的命名空间中,Windows 运行时类型位于以Windows开头的命名空间中,在 .NET Framework 桌面应用程序中使用的类型在.NET for Windows Stor 阅读全文

posted @ 2012-09-04 16:04 GIS-MAN 阅读(219) 评论(0) 推荐(0) 编辑

Deriving from BindableBase更简单的绑定通知

摘要: Visual Studio creates a BindableBase class in the Common folder of your projects. (Don’t confuse this class with the BindingBase class from which Binding derives.)BindableBase 是像下面这样定义的public abstract class BindableBase : INotifyPropertyChanged{ public event PropertyChangedEventHandler PropertyChang 阅读全文

posted @ 2012-09-04 15:17 GIS-MAN 阅读(1203) 评论(0) 推荐(0) 编辑

Data Binding Notifications绑定通知

摘要: The standard way for a View Model to serve as a binding source is by implementing the INotifyPropertyChanged interface defined in the System.ComponentModel namespace. This interface has an exceptionally simple definition:public interface INotifyPropertyChanged { event PropertyChangedEventHandler Pro 阅读全文

posted @ 2012-09-04 15:06 GIS-MAN 阅读(225) 评论(0) 推荐(0) 编辑

漫游应用程序数据

摘要: http://blogs.msdn.com/b/windowsappdev_cn/archive/2012/07/25/roaming.aspxApplicationData 划分为三大类数据,我们将这三个类别称为位置:本地、漫游和临时了解用户数据和应用程序数据之间的差别。用户数据是指用户在使用应用程序过程中创建和管理的数据,例如用户的文档、音乐、视频和图片。也可以是用户十分珍视或者要在不同应用程序之间共享的任何内容。这类数据应该存储在其中一个 KnownFolder 库中,或使用 SkyDrive API 进行漫游。密码应始终使用 PasswordVault 进行存储和漫游。本博文所涵盖的范 阅读全文

posted @ 2012-09-04 14:34 GIS-MAN 阅读(595) 评论(0) 推荐(0) 编辑

最大程度地利用像素,适应视图状态的变更___转

摘要: http://blogs.msdn.com/b/windowsappdev_cn/archive/2012/04/25/getting-your-pixels.aspx在 Windows 8 中,您的应用程序将在各种屏幕尺寸和不同视图状态下运行。用户可能将应用程序分屏显示于 25 英寸的台式计算机显示器的一侧,也可能将其全屏显示于 10 英寸的宽屏平板设备。但是无论是哪种情形,您都希望您的应用程序能够充分利用可用空间。在本篇博文中,我将向您展示如何在代码中跟踪您应用程序的当前尺寸和视图状态,并为您提供一些有关在 Windows 8 Consumer Preview 中编写应用程序的技巧,从而让 阅读全文

posted @ 2012-09-04 14:15 GIS-MAN 阅读(254) 评论(0) 推荐(0) 编辑

ListView 和 GridView ————转

摘要: 1. 选择 ListView 或 GridViewListView 和 GridView 控件均用于显示应用中数据的集合。它们的功能十分相似,但是显示数据的方式不同。它们都派生自 ItemsControl 类。ListView 采用垂直堆叠的方式显示数据。该控件常用于显示按顺序排列的项目列表,如电子邮件列表或搜索结果列表。它在主从式列表情况下也很有用,其中的列表项仅包含少量信息,并且选定项目的详细信息会单独显示。GridView 采用水平堆叠的方式显示数据。对于占驻较多控件的每个项目(如照片库),当你需要为其显示丰富的视觉信息时,该控件很常用。你可以通过将项直接添加到其 Items 集合或将其 阅读全文

posted @ 2012-09-04 09:57 GIS-MAN 阅读(11309) 评论(0) 推荐(1) 编辑

Windows 8里的标准化输入

摘要: http://blogs.msdn.com/b/windowsappdev/archive/2012/07/02/modernizing-input-in-windows-8.aspx支持的输入类型:(mouse, touch, pen, touchpads)输入来源(slate(平板), all-in-one(一体机), desktop, laptops(笔记本), convertibles)Finally, the Windows Runtime input APIs are at the bottom layer of the stack. These APIs (GestureReco 阅读全文

posted @ 2012-09-04 09:27 GIS-MAN 阅读(281) 评论(0) 推荐(0) 编辑

导航