摘要: 具体的理论就不说了,直接来实践吧,先看代码:首先是前台UI代码:View Code 1 <phone:PhoneApplicationPage 2 x:Class="tubiao1.MainPage" 3 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 4 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 5 xmlns:phone="clr-namespace:Microso 阅读全文
posted @ 2012-12-06 15:08 BellingWP 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 前台界面:using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Windows;using System.Windows.Controls;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Animation;using System.Windows.Shapes;using Microso 阅读全文
posted @ 2012-12-05 09:40 BellingWP 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 前台代码:<phone:PhoneApplicationPage x:Class="时钟.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xml 阅读全文
posted @ 2012-11-30 17:30 BellingWP 阅读(242) 评论(1) 推荐(1) 编辑
摘要: 《银光志--Silverlight 3.0开发详解与最佳实践》第3章XAML与Silverlight编程内功,通过本章的学习,相信你会对Silverlight编程模型、XAML、事件处理,以及LINQ查询语言有了一个比较全面的了解,在本章的示例中应用的都是一些基本的XAML元素,Silverlight 3在Silverlight 1.0的基础上导入了大量的新XAML元素,通过本章的学习可以为你打下良好的Silverlight 应用程序开发基础。本节为大家介绍使用DispatcherTimer计时器。AD:3.7.2 使用DispatcherTimer计时器DispatcherTimer是Sil 阅读全文
posted @ 2012-11-30 17:09 BellingWP 阅读(971) 评论(0) 推荐(0) 编辑
摘要: 早上在某WPF群里吹水,突然有人问了一个问题,他想利用一个计时器Timer类,实时更新界面上的控件内容,但是一直遇到抛出异常:System.InvalidOperationException{"调用线程无法访问此对象,因为另一个线程拥有该对象。"} 。于是我就拖了两个Label控件,在WPF上测试起来,代码如下: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Windows; 6 using System 阅读全文
posted @ 2012-11-30 16:22 BellingWP 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 1、Thread.Sleep(2000);让线程睡2000毫秒。2、Thread.Sleep()方法用于将当前线程休眠一定时间 时间单位是毫秒 1000毫秒= 1秒 休眠的时间可以用于让其他线程完成当前工作,亦可以减少CPU占用时间。避免程序出现长时间CPU占用100%的情况。如果需要对其他线程操作可以先实例化该线程。然后使用sleep方法。System.Threading.Thread.Sleep(2000);当前休眠2秒suspen()挂起当前线程。也可以指定挂起时间。close() 关闭当前线程。 阅读全文
posted @ 2012-11-30 15:08 BellingWP 阅读(142) 评论(0) 推荐(0) 编辑
摘要: wp7 知识库收藏本版|订阅友情提示, 暂无介绍, 请在后台版块管理中添加!版主:a68215812推荐主题TextBlock控件文字过长(大于2000)就显示不全解决方案LongListSelector的选项(无项不可用)Windows Phone 7独立存储空间IsolatedStorage新手入门必看,大家请见下面步骤,慢慢进入高手殿堂Windows Phone 7 用户体验 - Panorama 你用明白了吗?如果我们举办菜鸟培训计划,大家愿意参加的举手68页的helloWorld,初学者必看!!!!【原】何如实现ListBox下拉刷新和到底部自动加载WP7地图应用和获取手机设备信息W 阅读全文
posted @ 2012-11-29 14:45 BellingWP 阅读(209) 评论(0) 推荐(0) 编辑
摘要: http://www.hugwp.com/forum-47-1.html 阅读全文
posted @ 2012-11-29 14:42 BellingWP 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 学习,Windows,应用程序,Phone在这里补一下,显示或者隐藏系统托盘需要引入Microsoft.Phone.Shell这一命名空间,下面我写了一个Toggle System Tray 的方法,代码如下:this.SetValue(SystemTray.IsVisibleProperty, !(bool)this.GetValue(SystemTray.IsVisibleProperty));复制代码下面是两张效果的比较:<ignore_js_op>【使用托盘代码之前】<ignore_js_op>【使用托盘代码之后】去托盘的方法相对于Android 来说差不多,只 阅读全文
posted @ 2012-11-29 14:40 BellingWP 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 数据存储网址:http://www.hugwp.com/forum.php?mod=forumdisplay&fid=47&filter=typeid&typeid=24&page=2 阅读全文
posted @ 2012-11-29 14:36 BellingWP 阅读(134) 评论(0) 推荐(0) 编辑