导入命名空间using System.Windows.Media.Imaging;using System.IO;using Microsoft.Xna.Framework.Media;代码:public void CaptureScreen(object sender, EventArgs e){...
await Windows.System.Launcher.LaunchUriAsync( new Uri("ms-windows-store:reviewapp?appid=" + CurrentApp.AppId));
using Windows.UI.Popups;publicasyncvoidMessageBoxShow(stringcontent,stringcaption){MessageDialogmessageShow=newMessageDialog(content, caption);awaitme...
前言在前面一篇“新年快乐”的随笔中,我们介绍了WinRT中的简单动画实现。其实在使用Windows/Windows Phone时,我们都会看到一些动画,最简单的比如按下一个button时,该button的状态变化就是动画的一种。再比如弹出式窗口或菜单,也是一种动画。WinRT中的动画种类很多,但是分...
分类:
移动开发 时间:
2015-01-09 12:26:42
阅读次数:
244
protected override void OnLaunched(LaunchActivatedEventArgs args)
{ if (args.PreviousExecutionState != ApplicationExecutionState.Running) { bool loadS...
LockScreenManager: 启用应用程序,查看该应用程序是否是当前锁定屏幕背景提供程序,并将自己设置为提供程序。 属性: IsProvidedByCurrentApplication 只读指示应用程序是否是当前锁定屏幕背景提供程序。 方法: RequestAccessAsync将当前应用程...
Starts the default app associated with the specified file or URI. Launch a file contained in the app package async void DefaultLaunch()
{ // Path to t...
Windows Phone API 参考http://msdn.microsoft.com/zh-cn/library/windows/apps/ff626516(v=vs.105).aspxWindows Phone 8.1 中的新增功能http://msdn.microsoft.com/libr...
using (ToDoDataContext db = new ToDoDataContext(("isostore:/ToDo.sdf")))
{ //Create the database schema updater DatabaseSchemaUpdater dbUpdate = db.Cr...
分类:
数据库 时间:
2015-01-06 00:40:26
阅读次数:
189
好了,开始专说ItemsControl吧,记住以下几点即可:
a.ItemsControl.Template自定义ItemsControl控件的样式
其中要用ItemsPresenter来呈现ItemsControl的Items(不是Item)
具体表现的结构:ItemsControl=>ItemsControl.Template=>ControlTemplate
b.ItemsControl.ItemContainerStyle用来修改或者设置ItemsControl的Item的样式的(不...