随笔分类 -  WPF

摘要:效果图,改了图标 样式树 <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xa 阅读全文
posted @ 2021-02-19 12:01 清风神剑 阅读(2786) 评论(1) 推荐(1) 编辑
摘要:<!--1V按钮样式--> <Style TargetType="Button" x:Key="UButtonStyleOneVideo"> <Setter Property="Height" Value="20" /> <Setter Property="Width" Value="20" /> 阅读全文
posted @ 2021-02-19 11:52 清风神剑 阅读(690) 评论(0) 推荐(0) 编辑
摘要:页面代码 注:如果不加 EnableRowVirtualization="False" 全选反选会有遗漏的情况,所以一定要加上。 代码 获取datagrid中选中的行 阅读全文
posted @ 2019-04-03 11:53 清风神剑 阅读(1181) 评论(0) 推荐(0) 编辑
摘要:这里有个坑,初始化时不能变色,必须等datagrid完成渲染后才能进行这种行变色。 因而先把form show 出来之后才执行变色方法。这个方法因为莫名其妙的BUG会导致变色不是我们想要的效果!! 第二种方法。用datagrid 的 Dg_LoadingRow方法 阅读全文
posted @ 2019-04-03 11:39 清风神剑 阅读(1865) 评论(0) 推荐(0) 编辑
摘要:页面代码 <Grid DockPanel.Dock="Left" Width="400"> <DataGrid Name="dgSource" VerticalScrollBarVisibility="Visible" EnableRowVirtualization="False" ScrollVi 阅读全文
posted @ 2019-04-03 11:34 清风神剑 阅读(410) 评论(0) 推荐(0) 编辑
摘要:1.这个比较有效 this.Dispatcher.BeginInvoke(DispatcherPriority.Background, (Action)(() => { Keyboard.Focus(tbReceiveMoney); })); 2.一般方式 tbReceiveMoney.Focus( 阅读全文
posted @ 2018-03-19 20:38 清风神剑 阅读(1426) 评论(0) 推荐(0) 编辑

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