最近在用wpf做一个metro风格的程序,需要用到win8风格的布局容器,只能自己写一个了。效果如下用法 : //todo 放置内容 //local:TilePanel.WidthPix="1" 控制宽度倍率 //local:TilePanel.HeightPix="2"控制高度倍率下面附上源...
分类:
其他好文 时间:
2014-07-11 23:28:04
阅读次数:
323
using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using Syste...
分类:
其他好文 时间:
2014-07-11 23:15:16
阅读次数:
266
1)创建项目命令:scrapy startproject tutorial该命令将在当前目录下创建tutorial文件夹2)定义ItemItems are containers that will be loaded with the scraped data;They are declared b...
分类:
其他好文 时间:
2014-07-11 23:07:39
阅读次数:
314
java:public class ArrayStack { private int[] data; private int top; private int size; public ArrayStack(int size) { this.data = new...
分类:
编程语言 时间:
2014-07-11 22:49:57
阅读次数:
223
iPhone开发中常常需要将对象持久化处理,或者将数据文件反序列化,便于存储用户的配置、习惯、以及保存加载的数据等。一般对象序列化的方式有四种:plist,NSUserDefaults,sqlite以及Core Data。plist和sqlite数据库是最常用的方法。对于plist:新建plist文...
分类:
数据库 时间:
2014-07-11 22:26:31
阅读次数:
350
函数跟变量一样也是有作用域的:Global、Script、Local、PrivateGlobal:作用于整个PowerShell会话,只要PowerShell会话不结束,被Global修饰的变量和函数都是可用的。Script:仅作用于脚本执行期间,一旦脚本执行完毕,脚本中被Script修饰的变量和函...
分类:
其他好文 时间:
2014-07-11 22:23:43
阅读次数:
208
usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSys...
分类:
其他好文 时间:
2014-07-11 20:41:18
阅读次数:
171
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get the valu...
分类:
其他好文 时间:
2014-07-11 20:36:27
阅读次数:
234
BOOL savebitmap(const BITMAPINFOHEADER* pHeader, const char* data, int nImgW, int nImgH, const char* filename){ BITMAPINFOHEADER bmiHdr; //定义信息头 ...
分类:
编程语言 时间:
2014-07-11 19:11:19
阅读次数:
190
《Windows Azure Platform 系列文章目录》 对于传统的自建数据中心,从底层的Network,Storage,Servers,Virtualization,中间层的OS,Middleware,Runtime,最上层的Application,Data,都需要企业进行管理。这就好...
分类:
数据库 时间:
2014-07-11 19:10:03
阅读次数:
485