第一章已经简单介绍过这个容器,这一节详细介绍。Grid一般是用表格(Grid.Row 和Grid.Column )的,比StackPanel更细致一些,但是,这么玩很麻烦,先横着竖着定义一大堆,然后把元素指定其表格位置,即插入数据,和我们平常习惯的HTML表格不太一样,甚至更麻烦了。原因如下:Html空单元格要放占位符,这样会放很多;Grid玩法则是用什么元素就指定单元格位置,不用的单元格默认是空... Read More
posted @ 2007-03-31 15:32 包建强 Views(4124) Comments(2) Diggs(0) Edit
AJAX's fullname is "asynchronism JavaScript and XML". It's part of the "WEB 2.0". The main technique is XMLHTTPRequest. If you base on IE Explore, you may use ActiveXObject; otherwise use XMLHTTPReque... Read More
posted @ 2007-03-31 13:43 包建强 Views(529) Comments(0) Diggs(0) Edit
20-100万数据量 改表名 瞬间 改字段名 瞬间 移动字段位置 非常慢 10分钟 不如做个View把位置重新排列 加索引 1分钟,但是如果这个表很繁忙,则可能拖很长时间(15分左右),所以我是先改表名,再加索引,最后再把表名改回来 去索引 1分钟 加字段 null值瞬间,因为不需要额外分配空间 将字段允许null取消... Read More
posted @ 2007-03-31 13:33 包建强 Views(1227) Comments(0) Diggs(0) Edit
StackPanel用于小规模的排版布局,比如说一个局部下几个textbox和Button啦。Orientation属性有Vertical和Horizontal两种选择,决定布局方向。所有控件都有Margin属性,用来使控件之间不那么拥挤,Margin随Vertical和Horizontal的不同而所加的空白方向不同,当然Margin=“3,3”意味着同时在两个方向上有空白。HorizontalA... Read More
posted @ 2007-03-31 13:32 包建强 Views(998) Comments(2) Diggs(0) Edit
This projext named GameHall is a platform that allow users to plying card and the chess. It cost me one and a half month to finish it.The primary techniques are:1st base on C# TCP Socket asynchronism ... Read More
posted @ 2007-03-31 13:30 包建强 Views(605) Comments(1) Diggs(0) Edit
读完了这一节,发现DockPanel就是过去winform中的Dock属性。原来的Dock属性是子控件设置,而其父亲级别不用设置。现在WPF改为在父亲级别抽象出一个DockPanel,然后设置其下子控件的Dock属性。 Left Right Top Bottom Fill DockPanel有一个LastChildFill属性,一般设置为true,给最后一个元素使用... Read More
posted @ 2007-03-31 13:28 包建强 Views(1542) Comments(2) Diggs(0) Edit
书中的代码语法过时了,改写为以下(测试通过): ... Read More
posted @ 2007-03-31 11:28 包建强 Views(1998) Comments(2) Diggs(1) Edit