上一页 1 ··· 7 8 9 10 11 12 下一页
摘要: Queue<T> 先进先出集合。 Stack<T> 后进先出集合。 阅读全文
posted @ 2012-12-17 09:54 ZN大叔 阅读(182) 评论(0) 推荐(0) 编辑
摘要: template 模板,wpf中定制外观的东西,用来规定控件或者数据显示的组成部分。 template 主要分为两大类 应用于控件的controlTemplate。 应用于数据的DataTemplate。多用于itemscontrol controltemplate就是基本的template。用来规定一个控件的外观。这里需要提到的就是内容占位符:contentpresenter (类似还有如s... 阅读全文
posted @ 2012-12-13 17:01 ZN大叔 阅读(608) 评论(0) 推荐(0) 编辑
摘要: Pack URI方案: Pack://application,,, + [程序集名称;] + [可选版本号;] + [文件夹名称/]+文件名称 Pack://application,,, 可以省略。 [程序集名称];+[版本号] 有缺省值。 所以常见的形式就是[文件夹/]文件名称 同一程序集下面: //wpf相对路径 <image Source =”test/Images/wheel.jpg”/>... 阅读全文
posted @ 2012-12-07 15:09 ZN大叔 阅读(1566) 评论(0) 推荐(0) 编辑
摘要: 基于wpf sqlite3.x写的最近写的一个小东西,共享到网上供大家指教http://files.cnblogs.com/aoldman/UGlobe.ModelEditerSystem.zip 阅读全文
posted @ 2012-12-06 16:21 ZN大叔 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 本来以为XAML的扩展x:Static很简单,但在实际的编程过程中,遇到了不小的麻烦,看如下代码(其中,VM名字空间指向正确),我试图将枚举值FetchAndShowMode赋给CommandParameter,可是却编译出错:Cannot find the type 'MoviesVM.FetchAndShowMode'. Note that type names are case sensit... 阅读全文
posted @ 2012-12-03 11:15 ZN大叔 阅读(727) 评论(0) 推荐(0) 编辑
摘要: vs 视图----其它窗口----命令窗口 视图----其它窗口----命令窗口 先启动调试,然后输入Memory 关于更多的命令: 命令名别名完整名称 打印?调试打印 快速监视??调试.快速监视 添加新项目AddProj文件.添加新项目 别名Alias工具.别名 “自动”窗口Autos调试.自动窗口 “断点”窗口bl调试.断点 切换断点bp调试.切换断点 “调用堆栈”窗口CallStack调试.... 阅读全文
posted @ 2012-11-30 15:06 ZN大叔 阅读(559) 评论(0) 推荐(0) 编辑
摘要: 细实现。 using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Input;using System.Reflection; namespace TestAutoGenerateColumnForGridV... 阅读全文
posted @ 2012-11-21 17:17 ZN大叔 阅读(797) 评论(0) 推荐(1) 编辑
摘要: Wpf的DataBinding为我们将View与logic的分离提供了便利。特别是利用MVP模式,可以将大部分的UI交互逻辑通过绑定Command来转移到Presenter中来,使我们可以专注于操作业务数据。但是微软提供的控件中好像还有很多的控件根本没有Command属性,只有普通的Event。这样的话就没有办法利用绑定将逻辑转移到Presenter中。看到xaml.cs(每一个xaml文件的co... 阅读全文
posted @ 2012-11-21 17:07 ZN大叔 阅读(882) 评论(0) 推荐(0) 编辑
摘要: 这个动画本来很简单的,从论坛上看到了,就放在这里,省的以后做了 [csharp] view plaincopyprint? <Window x:Class="WPFTransformWindows.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schema... 阅读全文
posted @ 2012-11-19 16:44 ZN大叔 阅读(794) 评论(0) 推荐(0) 编辑
摘要: <Window.Resources> <x:ArrayExtension x:Key="OpenBtn_Res" Type="{x:Type System:String}"> <x:StaticExtension Member="prop:Resources.OpenToolName"/> <System:String>\Image\Table_Open.png</System:String> <... 阅读全文
posted @ 2012-11-19 14:03 ZN大叔 阅读(288) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 下一页