zip's

while(true) { Write it down; Think about it; Refine it; Sleep(); }

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
上一页 1 ··· 5 6 7 8 9 10 下一页

2010年10月29日

摘要: 1,资源浏览器中输入 %APPDATA%\Microsoft\Windows\SendTo ,回车,打开 Send To 文件夹;2,创建一个快捷方式,例如 NotePad 阅读全文
posted @ 2010-10-29 10:17 zip's 阅读(182) 评论(0) 推荐(0) 编辑

2010年10月22日

摘要: 在MFC GUI程序弹出WPF窗口,可能有这样一个问题,WPF窗口在任务栏上有一个图标,某些操作(如打开文件对话框)后,WPF窗口被隐藏到了MFC主窗口后面,这时候用户体验就与CDialog有明显不同了。为保持一致,解决这个问题的方法:在MFC程序中加入WPF窗口,把MFC窗口设置为WPF窗口的父,并且不再taskbar中显示WPF窗口 阅读全文
posted @ 2010-10-22 13:34 zip's 阅读(1135) 评论(0) 推荐(0) 编辑

摘要: mstsc    : 打开远程桌面连接shutdown  : 关机,参数 /r /ssysteminfo  : 查看系统信息 阅读全文
posted @ 2010-10-22 12:38 zip's 阅读(297) 评论(0) 推荐(0) 编辑

2010年10月20日

摘要: 推荐阅读:http://www.codeproject.com/KB/WPF/wpfvalidation.aspxTextBox定制 Validation.ErrorTemplateTIP:这里在 ControlTemplate 里为 AdornedElementPlaceHolder 命名,方便在后面的 Binding 中引用;使用另外一个 TextBlock 显示 阅读全文
posted @ 2010-10-20 15:15 zip's 阅读(1346) 评论(0) 推荐(0) 编辑

2010年10月9日

摘要: new and create[代码]需要处理,non-client area destory 消息,OK 按钮,Cancel 按钮[代码]在 non-client area destroy 时,delete 上面 new 出来的对话框[代码]在 OK 和 Cancel 时,调用 DestroyWindow,它会发出 WM_NCDESTORY[代码] 阅读全文
posted @ 2010-10-09 11:05 zip's 阅读(660) 评论(0) 推荐(0) 编辑

2010年9月26日

摘要: Over View ComboBox 由一个 TextBox 一个 Button 和一个 Popup 组合而成; Data Binding 当 data binding 到 ComboBox 时,如何显示数据,有如下选择: 使用 DisplayMemberPath Code highlighting produced by Actipro CodeHighlighter (freeware)ht... 阅读全文
posted @ 2010-09-26 17:34 zip's 阅读(2093) 评论(0) 推荐(0) 编辑

2010年9月1日

摘要: 使用control自由的property作为triggerView Code <ToggleButton Width="30" Height="30"> <ToggleButton.Style> <Style TargetType="ToggleButton"> <Style.Triggers> <Trigger Property="IsChecked" Value="true"> <Setter Property="C 阅读全文
posted @ 2010-09-01 10:38 zip's 阅读(2292) 评论(0) 推荐(0) 编辑

2010年8月27日

摘要: 在 XAML 中1,创建一个command对象,可以直接使用RoutedCommand,然后通过CommandBinding来指定Execute和CanExecute;2,指定 Command 。例子中使用的是CheckBox, 实际上Command是ButtonBase的成员,所以,所有ButtonBase的派生类都适用该方法,如RadioButton, RepeatButton,等等。Comm... 阅读全文
posted @ 2010-08-27 16:23 zip's 阅读(8880) 评论(6) 推荐(2) 编辑

2010年8月18日

摘要: 绑定到另一个控件的属性<StackPanel> <TextBox x:Name="theTextBox"/> <TextBlock Text="{Binding Text, ElementName=theTextBox}"/></StackPanel>上面这个例子,TextBlock的内容绑定了TextBox,当在TextBox里输入文本是,TextBlock也同时显示---绑定到 RelativeSource<ListBox ItemsSource="{Binding MyDataSrc} 阅读全文
posted @ 2010-08-18 14:58 zip's 阅读(500) 评论(0) 推荐(0) 编辑

2010年8月12日

摘要: Windows 7 shortcut keysWindows 7 with the new Taskbar has a number of new and nice keyboard shortcut which will make your everyday life much easier. The most useful ones are…Window handlingWind... 阅读全文
posted @ 2010-08-12 11:19 zip's 阅读(555) 评论(0) 推荐(0) 编辑

上一页 1 ··· 5 6 7 8 9 10 下一页