上一页 1 ··· 413 414 415 416 417 418 419 420 421 ··· 454 下一页
圣诞节来了,无聊,做点东西纪念一下。 原理很简单,生成1000个圆,从随机数来布置它们的位置,通过动画来处理它们的透明度,动画时长也是随机生成。1、创建图形数组并设置背景透明,渐变笔触,大小等,而后加入到Grid元素的子元素集中;2、创建动画时间线;3、加载完成后播放动画;4、每一轮动画播放完毕后,重新随机生成一下图形的Margin,动画的时间长度也是随机生成。using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Windows;using System.Win Read More
posted @ 2011-12-25 20:05 javawebsoa Views(292) Comments(0) Diggs(0)
DataTableToJson:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.Serialization.Json; using System.Runtime.Serialization; using System.IO; using System.Web.Script.Serialization; using MicroBlog.Common.APIHelper; using System.Web; namespace Mi. Read More
posted @ 2011-12-23 10:19 javawebsoa Views(376) Comments(0) Diggs(0)
在VS中右击项目,添加新项,我们找到.ashx文件在新建项模板中叫做“一般处理程序”,那么这个一般处理程序用来干吗的呢?我们可以这样地简单理解,嗯,不需搞得太复杂,它就类似.aspx文件,用于处理传入到服务器的HTTP请求,但它不会像.aspx文件那样要返回处理结果和大量HTML,它可以返回简单的字符串、图片等。大家知道,HttpHandle需要在Web.Config文件中进行相应的配置,那么,如果不配置呢?能否直接使用?可以的,来,动手玩玩。1、在项目中添加一个.ashx文件,并改写默代码,如下:using System;using System.Web;public class image Read More
posted @ 2011-12-23 09:06 javawebsoa Views(302) Comments(0) Diggs(0)
后台数据绑定 //本地 this.image1.Source = new BitmapImage( new Uri("Desert.jpg", UriKind.Relative) ); //网络 this.image1.Source = new BitmapImage( new Uri("http://img.download.pchome.net/3k/37/131467_800x600.jpg", UriKind.Absolu... Read More
posted @ 2011-12-22 15:30 javawebsoa Views(182) Comments(0) Diggs(0)
using System; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Ink; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; using Microsoft.Phone.Controls; us Read More
posted @ 2011-12-21 10:46 javawebsoa Views(207) Comments(0) Diggs(0)
引入命名空间:Using Microsoft.Phone.Tasks;代码段: void cameraCaptureTask_Completed(object sender, PhotoResult e) { BitmapImage bmp = new BitmapImage(); bmp.SetSource(e.ChosenPhoto);//获取返回的图片 image1.Source = bmp; } private void button1_Click(o... Read More
posted @ 2011-12-21 10:44 javawebsoa Views(224) Comments(0) Diggs(0)
在Blend中右击ListView控件,从样式和模板相关的菜单项中,我们没找到与列表头有关的项。然后,我们到属性面板中找GridView的ColumnHeaderContainerStyle属性,结果你发现,就算你在高级选项菜单中把它转换为本地资源,你会发现它没有反应,切换到XAML视图也没看到生成的代码。那是不是没办法了呢?这个问题我想了想,是不是只能手写XAML呢? 其实是要手动写一点代码,但可以借助Blend的设计器来使用。 怎么操作呢? 切换到XAML视图,在Window的资源中增加一个样式,类型指向GridViewColumnHeader的样式:<Style TargetTyp Read More
posted @ 2011-12-21 08:06 javawebsoa Views(330) Comments(0) Diggs(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 M Read More
posted @ 2011-12-19 14:52 javawebsoa Views(206) Comments(0) Diggs(0)
写在前面的话:随着移动设备的逐渐普及和Web技术的发展,跨端的Web开发需求将会越来越大。如何在多种设备上进行跨端的界面适配呢?我们可以利用CSS3的Media Query来实现。本文主要介绍了移动开发和CSS3结合,来进行多种分辨率适配的例子。 文中提到的响应式网页设计(Responsive web design)是一种现代网页设计方法,基于CSS3的媒介查询(Media Query)特性使得网页适应不同设备,即根据设备的分辨率和缩放自动重新布局。 ----------- 译自:http://webdesignerwall.com/tutorials/responsi... Read More
posted @ 2011-12-18 23:29 javawebsoa Views(538) Comments(0) Diggs(0)
分享一个我写的类似于android的toast的提示框主要特点:1,支持屏幕Y轴任意位置显示,设置距离顶/底端距离2,支持多行文本3,支持设置等待时间4,支持点击隐藏,屏幕旋转时自动隐藏,淡入淡出5,无需初始化,类方法调用效果图:全部代码如下,使用时需要添加QuartzCore.framework,希望能给大家带来方便。#import <Foundation/Foundation.h> #define DEFAULT_DISPLAY_DURATION 2.0f @interface OMGToast : NSObject { NSString *text; UIButton... Read More
posted @ 2011-12-16 18:22 javawebsoa Views(862) Comments(0) Diggs(0)
上一页 1 ··· 413 414 415 416 417 418 419 420 421 ··· 454 下一页