摘要: HorizontalAlignment:Left,Center,Hight,Stretch(default) VerticalAlignment:Top,Center,Bottom,Stretch(default) 可以让一个元素自己决定如何使用父面板给它的额外空间。 只有当一个父面板给子元素的空间比子元素真正需要的多时,这两个属性才是有用的。 HorizontalContentAlignment:Left(default),Center,Hight,Stretch VerticalContentAlignment:Top(default),Center,Bottom,S... 阅读全文
posted @ 2011-11-28 20:19 quietwalk 阅读(340) 评论(0) 推荐(0)
摘要: 最好不要设置显式尺寸。父元素的行为能改变一个元素在屏幕上的最终尺寸。 DesiredSize:在布局基于其他属性值时才被计算出来。 RenderSize:表示元素在布局完成之后的最终尺寸。 Margin:控制元素边界以外有多少空间。(System.Windows.Thickness类型) Padding:控制元素边界以内有多少空间。(System.Windows.Thickness类型) myControl.Margin=new ThickNess(10);//Margin=”10”; myControl.Margin=new Thickness(20,5,20,5);//Ma... 阅读全文
posted @ 2011-11-28 20:18 quietwalk 阅读(717) 评论(0) 推荐(0)
摘要: 枚举 Visible(可见)——元素获得渲染并参与布局。 Collapsed(折叠)——元素不可见并且不参与布局。 Hidden(隐藏)——元素不可见但是参与布局。 <StackPanel Height="100" Background="Aqua"> <Button Visibility="Collapsed">Collapsed Button</Button> <Button>Below a Collapsed Button</Button> </StackPane 阅读全文
posted @ 2011-11-28 20:18 quietwalk 阅读(193) 评论(0) 推荐(0)
摘要: 不是从 TextBoxBase继承。 不支持 Cut, Copy, Undo, Redo 命令,也不支持拼写检查。 支持 Paste。 PasswordChar属性设置显示的字符。 文本保存在 Password 的字符串属性里,内部把密码存放在一个 System.Security.SecurityString对象中。 阅读全文
posted @ 2011-11-28 20:17 quietwalk 阅读(224) 评论(0) 推荐(0)
摘要: TextChanged SelectionChanged TextWrapping=Wrap不允许有任何一行超过控件的边界,即使在一个字的中间,也会强行换行。 TextWrappong=WrapWithOverflow 仅保留一行,只要一有机会,长文字就会被截断。 AcceptReturn=true可以在输入时通过回车键来换行。 SpellCheck.IsEnabled=true 启用拼写检查。 阅读全文
posted @ 2011-11-28 20:17 quietwalk 阅读(191) 评论(0) 推荐(0)
摘要: CaretIndex SelectionStart SelectionEnd CaretPostion(TextPointer类型) 内容存在 Document属性里(FlowDocument) 阅读全文
posted @ 2011-11-28 20:17 quietwalk 阅读(172) 评论(0) 推荐(0)
摘要: <StatusBar> <Label>27</Label> <Separator /> <Label>Zoom</Label> <ComboBox> </ComboBox> <Separator /> <Button> <Image Source="/Pictures/toolbar1.png" /> </Button> </StatusBar> 阅读全文
posted @ 2011-11-28 20:16 quietwalk 阅读(213) 评论(0) 推荐(0)
摘要: http://hi.baidu.com/w01fer/blog/item/93d185119a58ca0b213f2ea2.htmlLUHN算法,主要用来计算信用卡等证件号码的合法性。 next section from:http://en.wikipedia.org/wiki/Luhn_algorithm The Luhn algorithm or Luhn formula, also known as the "modulus 10" or "mod 10" algorithm, is a simple checksum formula used t 阅读全文
posted @ 2011-11-28 13:34 quietwalk 阅读(3009) 评论(0) 推荐(0)
摘要: http://blog.163.com/shaobo_zhou/blog/static/1217766262009692180356/项目管理知识体系指南(第3版)(PMBOK指南)作者:美国项目管理协会出版社:电子工业出版社这本书是美国项目管理协 会(PMI)的权威经典著作,已经成为美国项目管理的国家标准之一,也是当今项目管理知识与实践领域的事实上的世界标准。本书共分为4大部分12章内容, 以精辟的语言定义了5个项目管理过程组和介绍了项目管理的9大知识领域。可以帮助一个人快速了解项目管理知识体系的全貌。 不过这本书很多理论在实际操作中很难把握,而且中文版翻译还是有点硬。 我推荐的第二本书是 阅读全文
posted @ 2011-11-28 11:09 quietwalk 阅读(1455) 评论(0) 推荐(0)