摘要: 从字典(DicRoleForScope)中查询对应(role)的值再赋值给其他变量( DicSelectedRoleForScope) Dictionary<string, object> dic = DicRoleForScope.Where(s => s.Value.ToString().Con 阅读全文
posted @ 2019-08-31 15:10 马玲 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 查询每个表的字段及相关信息 SELECT TableName = case when a.colorder=1 then d.name else '' end, TableInstruction = case when a.colorder=1 then isnull(f.value,'') els 阅读全文
posted @ 2019-07-30 10:56 马玲 阅读(278) 评论(0) 推荐(0) 编辑
摘要: XAML特殊字符不能直接写,需如下1、特殊字符 字符实体 小于号(<) &lt; 大于号(>) &gt; &符号(&) &amp; 引号(") &quot; 换行 &#13; 注:后面的分号不能少 2、显示一对大括号:{ABC} <Button Content="{}{ABC}"/>或者 <Butt 阅读全文
posted @ 2018-11-27 22:03 马玲 阅读(583) 评论(0) 推荐(1) 编辑
摘要: 数据处理 1、保留两位小数 = float.Parse(数据).ToString("F2") //不准确 例如9.57转换后变为9.60 四舍五入 Math.Round(变量, 位数, MidpointRounding.AwayFromZero).ToString() 2、numeric(18, 2 阅读全文
posted @ 2018-11-27 21:38 马玲 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 1.ListBox对于数据绑定:如绑定的是实体,正常使用DataSource和SelectedItem即可 如自己手动添加的ListBoxItem获取选中项b.需定义一个ListBoxItem类型的变量(如:SymbolSelected)绑定到SelectedItem;c.使用时SymbolSele 阅读全文
posted @ 2018-11-08 09:38 马玲 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 关于拖放,可以通过以下博客对拖放之间的事件关系进行了解http://www.cnblogs.com/loveis715/archive/2011/12/05/2277384.html 拖放的公用类库 Platform.Common中的DragAndDrop,其中DragDropAdorner用来显示 阅读全文
posted @ 2018-10-30 20:40 马玲 阅读(475) 评论(0) 推荐(0) 编辑
摘要: 1.xaml控件使能 IsReadOnly ="True"只读 IsEnable ="False" 不可操作,变灰 IsHitTestVisible="False" 不可操作,不变灰 2.控件:内容控件(Content Control),集合控件(ItemControl) 3.资源地址:pack:/ 阅读全文
posted @ 2018-10-30 20:29 马玲 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 一 . hashTable 1.引用 using System.Collections; 2.声明 Hashtable ht = new Hashtable(); 3.添加值 ht.Add(key,value); key 唯一 string keytxt = de.Key.ToString() st 阅读全文
posted @ 2018-10-30 20:18 马玲 阅读(2794) 评论(0) 推荐(0) 编辑
摘要: 1.Xaml 继承Style 用属性BaseOn 2.DataTemplete 3.ControlTemplete 4.WindowState = "Maximized" --最大化显示 5.Popup 6.依赖属性 静态存储,性能和控件较传统属性都是很大的提升。外部调用时可使用绑定。第二个Type 阅读全文
posted @ 2018-10-18 19:40 马玲 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 1.资源地址 pack://application:,,,/Views/10FinanceRoutineFlowWnd/UCFlowLeaveAndOverApplicant.xaml 2.RelativeSource 指定当前元素和绑定源的位置(Path)关系 :1.Self 自身的某些属性Hei 阅读全文
posted @ 2018-10-17 20:19 马玲 阅读(213) 评论(0) 推荐(0) 编辑