摘要: Microsoft.Phone.Shell命名空间中定义了ApplicationBar及其相关类(ApplicationBarIconButton和ApplicationBarMenuItem),这些类派生自Object,并完全独立于常规Silverlight编程中的DependencyObject,UIElement和FrameworkElement类层次结构。ApplicationBar最多能包含4个按钮,包含的图片通常是PNG文件,位图本身的宽高都是48像素,通常是透明的,实际图片应该是白色,在位图中间显示,是一个宽高均为26像素的正方形。eg: <phone:PhoneAppli 阅读全文
posted @ 2012-05-10 09:38 壹夢彡肆年 阅读(374) 评论(0) 推荐(1)
摘要: 在XNA程序中下载网络位图,通过WebClient的.NET类可以使工作变得相对容易,它比常规选择(HttpWebRequest和HttpWebResource)更容易,并且,这种方式通常是下载单个文件的首选。using System;using System.Collections.Generic;using System.Linq;using Microsoft.Xna.Framework;using Microsoft.Xna.Framework.Audio;using Microsoft.Xna.Framework.Content;using Microsoft.Xna.Fram... 阅读全文
posted @ 2012-05-05 15:58 壹夢彡肆年 阅读(474) 评论(1) 推荐(1)
摘要: 首先创建XNA工程,然后编辑Game1.cs文件:using System;using System.Collections.Generic;using System.Linq;using Microsoft.Xna.Framework;using Microsoft.Xna.Framework.Audio;using Microsoft.Xna.Framework.Content;using Microsoft.Xna.Framework.GamerServices;using Microsoft.Xna.Framework.Graphics;using Microsoft.Xna.Fram 阅读全文
posted @ 2012-05-04 01:35 壹夢彡肆年 阅读(217) 评论(0) 推荐(1)