11 2011 档案

摘要: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 阅读(334) 评论(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 阅读(711) 评论(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 阅读(186) 评论(0) 推荐(0) 编辑
摘要:TextChanged SelectionChanged TextWrapping=Wrap不允许有任何一行超过控件的边界,即使在一个字的中间,也会强行换行。 TextWrappong=WrapWithOverflow 仅保留一行,只要一有机会,长文字就会被截断。 AcceptReturn=true可以在输入时通过回车键来换行。 SpellCheck.IsEnabled=true 启用拼写检查。 阅读全文
posted @ 2011-11-28 20:17 quietwalk 阅读(187) 评论(0) 推荐(0) 编辑
摘要:CaretIndex SelectionStart SelectionEnd CaretPostion(TextPointer类型) 内容存在 Document属性里(FlowDocument) 阅读全文
posted @ 2011-11-28 20:17 quietwalk 阅读(166) 评论(0) 推荐(0) 编辑
摘要:不是从 TextBoxBase继承。 不支持 Cut, Copy, Undo, Redo 命令,也不支持拼写检查。 支持 Paste。 PasswordChar属性设置显示的字符。 文本保存在 Password 的字符串属性里,内部把密码存放在一个 System.Security.SecurityString对象中。 阅读全文
posted @ 2011-11-28 20:17 quietwalk 阅读(221) 评论(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 阅读(210) 评论(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 阅读(2950) 评论(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 阅读(1436) 评论(0) 推荐(0) 编辑
摘要:<TreeView> <TreeViewItem Header="Desktop"> <TreeViewItem Header="Computer"> </TreeViewItem> </TreeViewItem> <TreeViewItem Header="Recycle Bin"> </TreeViewItem> <TreeViewItem Header="Control Panel"> <TreeViewIt 阅读全文
posted @ 2011-11-26 17:07 quietwalk 阅读(371) 评论(0) 推荐(0) 编辑
摘要:<ToolBar Height="100" Width="1024"> <Button> <Image Source="/Pictures/toolbar1.png" /> </Button> <Separator /> <ToggleButton> <Image Source="/Pictures/toolbar2.png"/> </ToggleButton> <ToggleButton> <Imag 阅读全文
posted @ 2011-11-26 17:07 quietwalk 阅读(170) 评论(0) 推荐(0) 编辑
摘要:横排 <Menu> <MenuItem Header="_File"> <MenuItem Header="_New。¡ê。¡ê。¡ê"></MenuItem> <MenuItem Header="_Open。¡ê。¡ê。¡ê"></MenuItem> <Separator /> <MenuItem Header="S 阅读全文
posted @ 2011-11-26 17:06 quietwalk 阅读(179) 评论(0) 推荐(0) 编辑
摘要:<ListBox Name="lsTest"> <ListBox.ItemsPanel> <ItemsPanelTemplate> <VirtualizingStackPanel Orientation="Horizontal" /> </ItemsPanelTemplate> </ListBox.ItemsPanel> <ListBox.ContextMenu> <ContextMenu> <MenuItem Header="_File&qu 阅读全文
posted @ 2011-11-26 17:06 quietwalk 阅读(209) 评论(0) 推荐(0) 编辑
摘要:<ListView> <ListView.View> <GridView> <GridViewColumn Header="Date" /> <GridViewColumn Header="Day of Week"DisplayMemberBinding="{Binding DayOfWeek}" /> <GridViewColumn Header="Year"DisplayMemberBinding="{Binding Year}&quo 阅读全文
posted @ 2011-11-26 17:05 quietwalk 阅读(272) 评论(0) 推荐(0) 编辑
摘要:<TabControl> <TextBlock>Content for Tab 1.</TextBlock> <TextBlock>Content for Tab 2.</TextBlock> <TextBlock>Content for Tab 3.</TextBlock> </TabControl> TabControl 隐式地用它的TabItem类型包装每一个项。由于没有一个显式的TabItem,就没有办法产生相应的标签。 <TabControl> <TabItem Head 阅读全文
posted @ 2011-11-26 17:05 quietwalk 阅读(242) 评论(0) 推荐(0) 编辑
摘要:IsEditable:把 ComboBox变成一个文本框; IsReadOnly:决定文本框是否可以编辑; 只有 IsEditable为 true 时,IsReadOnly 才起作用。 <ComboBox> <!--Item #1--> <StackPanel Orientation="Horizontal" Margin="5"> <Image Source="/Pictures/1.jpg"></Image> <StackPanel Width="200& 阅读全文
posted @ 2011-11-26 17:04 quietwalk 阅读(335) 评论(0) 推荐(0) 编辑
摘要:SelectionMode Single Mulle Extended <ListBox Name="lsTest"> <ListBox.ItemsPanel> <ItemsPanelTemplate> <VirtualizingStackPanel Orientation="Horizontal" /> </ItemsPanelTemplate> </ListBox.ItemsPanel> <ListBoxItem>Item1</ListBoxItem> & 阅读全文
posted @ 2011-11-26 17:04 quietwalk 阅读(202) 评论(0) 推荐(0) 编辑
摘要:<Expander Header="Grammar"> <StackPanel> <CheckBox>Check grammar as you type</CheckBox> <CheckBox>Hide grammatical errors in this document</CheckBox> <CheckBox>Check grammar with spellling</CheckBox> </StackPanel> </Expander> Expa 阅读全文
posted @ 2011-11-26 17:03 quietwalk 阅读(236) 评论(0) 推荐(0) 编辑
摘要:<GroupBox> <GroupBox.Header> <Button>Select All</Button> </GroupBox.Header> <StackPanel> <CheckBox>Check</CheckBox> <CheckBox>Hide</CheckBox> <CheckBox>Display</CheckBox> </StackPanel> </GroupBox> 阅读全文
posted @ 2011-11-26 17:02 quietwalk 阅读(193) 评论(0) 推荐(0) 编辑
摘要:ToolTip for Button <Button> OK <Button.ToolTip> Clicking this will submit your request. </Button.ToolTip> </Button> ToolTip for CheckBox <CheckBox> CheckBox <CheckBox.ToolTip> <StackPanel> <Label FontWeight="Bold" Background="Blue" For 阅读全文
posted @ 2011-11-26 17:01 quietwalk 阅读(261) 评论(0) 推荐(0) 编辑
摘要:private void PrintVisialTree(int depth, DependencyObject obj) { System.Diagnostics.Debug.WriteLine(new string(' ', depth) + obj); for (int i = 0; i < VisualTreeHelper.GetChildrenCount(obj); i++) { PrintVisialTree(depth + 1, VisualTreeHelper.GetChild(obj, i)); } } protected overr... 阅读全文
posted @ 2011-11-25 10:11 quietwalk 阅读(153) 评论(0) 推荐(0) 编辑
摘要:private void PrintLogicalTree(int depth, object obj) { System.Diagnostics.Debug.WriteLine(new string(' ', depth) + obj); if (!(obj is DependencyObject)) { return; } foreach (object child in LogicalTreeHelper.GetChildren(obj as DependencyObject)) { PrintLogicalTree(depth + 1, chil... 阅读全文
posted @ 2011-11-25 10:06 quietwalk 阅读(173) 评论(0) 推荐(0) 编辑
摘要:Window window = null; using (FileStream fs = new FileStream("MyWindow.xaml", FileMode.Open, FileAccess.Read)) { window = (Window)System.Windows.Markup.XamlReader.Load(fs); } System.Windows.Controls.Button btnOk = (System.Windows.Controls.Button)window.FindName("btnOk"); 阅读全文
posted @ 2011-11-25 09:08 quietwalk 阅读(311) 评论(0) 推荐(0) 编辑
摘要:<Button xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> <Button.Content> <Rectangle Height="40" Width="40" Fill="Black" /> </Button.Content> </Button> System.Windows.Controls.Button button = new System.Windows.C 阅读全文
posted @ 2011-11-24 20:02 quietwalk 阅读(260) 评论(0) 推荐(0) 编辑
摘要:<ListView Height="264" HorizontalAlignment="Left" Margin="28,84,0,0" Name="listView1" VerticalAlignment="Top" Width="526" > <ListView.View> <GridView x:Name="gridView1"> <GridViewColumn Header="UserId&quo 阅读全文
posted @ 2011-11-22 08:50 quietwalk 阅读(17098) 评论(0) 推荐(0) 编辑
摘要:http://easonfans.iteye.com/blog/617916如何在win7系统上安装Jdk版本1.6 现在应该很多人都用上了WIN7,有关的教程都是基于WIN XP安装截图是方便大家看(这些图片放在windows live上) 安装JDK jdk-6u17-windows-i586.exe 此链接为SUN公司自己的下载端点, 下载安装 安装结束后 用鼠标右击“计算机”->属性->高级系统设置->环境变量 系统变量->新建->变量名:JAVA_HOME变量值:C:\Program Files\Java\jdk1.6.0_18 (这只是我的JDK安装路 阅读全文
posted @ 2011-11-21 11:58 quietwalk 阅读(6086) 评论(0) 推荐(0) 编辑
摘要:http://chaizhixue2005.blog.sohu.com/139840107.htmlWCF’s fundamental communication mechanism is SOAP-based Web services. Because WCF implements Web services technologies defined by the WS-* specifications, other software which is based on SOAP and supports WS-* specifications can communicate with ... 阅读全文
posted @ 2011-11-19 13:12 quietwalk 阅读(1338) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/downmoon/article/details/5834773最近开始了解WCF。写了个最简单的Helloworld,想通过java客户端实现通信。没想到以我的基础,居然花了整整两天(当然是工作以外的时间,呵呵),整个过程大费周折,特写下此文,以供有需要的朋友参考: 第一步:生成WCF服务 新建WCF解决方案,分别添加三个项目,HelloTimeService(类库),HelloTimehost(控制台程序),HelloTimeClient(控制台程序),项目结构如图: 各个项目的主要代码: service: Host: Client: ... 阅读全文
posted @ 2011-11-19 12:55 quietwalk 阅读(390) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/pato/archive/2011/08/15/2139705.html Enum为枚举提供基类,其基础类型可以是除 Char 外的任何整型。如果没有显式声明基础类型,则使用 Int32。编程语言通常提供语法来声明由一组已命名的常数和它们的值组成的枚举。 注意:枚举类型的基类型是除 Char 外的任何整型,所以枚举类型的值是整型值。 Enum 提供一些实用的静态方法: (1)比较枚举类的实例的方法 (2)将实例的值转换为其字符串表示形式的方法 (3)将数字的字符串表示形式转换为此类的实例的方法 (4)创建指定枚举和值的实例的方法。 举例:enum. 阅读全文
posted @ 2011-11-09 08:44 quietwalk 阅读(377) 评论(0) 推荐(1) 编辑
摘要:http://www.cnblogs.com/artech/archive/2009/11/05/1596925.html服务调用的目的体现在对某项服务功能的消费上,而功能的实现又定义在相应的服务类型中。不论WCF服务端框架处理服务调用请求的流程有多么复杂,最 终都落实在服务实例的激活和操作方法的执行上面。WCF中的实例管理(Instance Management)旨在解决服务实例的激活和服务实例生命周期的控制。 会话(Session)的目的在于保持来自相同客户端(服务 代理)多次服务调用之间的状态。从消息交换的角度来讲,会话通过消息识别机制判断调用某个服务的消息来源,从而将来自相同客户端.. 阅读全文
posted @ 2011-11-08 12:50 quietwalk 阅读(288) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/yunhaic/article/details/4863322 在 .net 类库中有一个 system.diagnostics 命名空间,该命名空间提供了一些与系统进程、事件日志、和性能计数器进行交互的类库。当中包括了两个对开发人员而言十分有用的类——debug类和 trace类。本文介绍了这两个类的一些基本用途,旨在提高广大开发人员的开发效率。使用debug类来帮助调试调试程序对每个程序员来说是家常便饭。可是我们会经常遇到一些情况让我们头疼,例如:当我们在开发一个界面控件的时候,简单的设断点会增加paint事件的响应次数,而造成的环境参数改变。.. 阅读全文
posted @ 2011-11-03 13:56 quietwalk 阅读(2169) 评论(1) 推荐(2) 编辑
摘要:http://blog.csdn.net/yunhaiC/article/details/4863578本文介绍如何使用 Debug 和 Trace 类。Microsoft .NET Framework 中提供了这两个类。在应用程序开发期间或部署到产品后,可以使用这两个类提供有关应用程序性能的信息。这两个类只是 .NET Framework 中所提供配置功能的一部分。 要求下面的列表概括了推荐的硬件、软件、网络结构以及所需的 Service Pack: • Microsoft Windows 2000 或 Microsoft Windows XP • Microsoft Visual C... 阅读全文
posted @ 2011-11-03 13:55 quietwalk 阅读(1044) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示