摘要: https://blog.csdn.net/qq_33933205/article/details/107380741 阅读全文
posted @ 2021-09-25 13:57 卡尔赛斯 阅读(241) 评论(0) 推荐(0)
摘要: DateTime oldtime = Convert.ToDateTime("1900-1-1 00:00:00");//构造1900年1月1日 结果为:1900/1/1 0:00:00 转载于:https://www.cnblogs.com/zmxmiss/archive/2010/04/24/1 阅读全文
posted @ 2021-07-16 15:21 卡尔赛斯 阅读(63) 评论(0) 推荐(0)
摘要: WPF: 就像这样,鼠标移上去动态改变背景颜色 <Window.Resources> <ControlTemplate x:Key="ButtonTemplate" TargetType="{x:Type Button}"> <Border BorderBrush="Orange" BorderTh 阅读全文
posted @ 2021-06-24 18:44 卡尔赛斯 阅读(2553) 评论(0) 推荐(0)
摘要: WPF XAML: <DataGrid AutoGenerateColumns="False" Height="148" HorizontalAlignment="Left" Margin="27,21,0,0" Name="dataGrid1" VerticalAlignment="Top" Wi 阅读全文
posted @ 2021-06-07 15:33 卡尔赛斯 阅读(1106) 评论(0) 推荐(0)
摘要: WPF 1.Install-Package WindowsAPICodePack-Core2.Install-Package WindowsAPICodePack-Shell 转载于:https://blog.csdn.net/u011127019/article/details/52718280 阅读全文
posted @ 2021-06-06 12:34 卡尔赛斯 阅读(351) 评论(0) 推荐(0)
摘要: WPF XAML中:<ComboBox Name="_startTime" SelectionChanged="_startTime_SelectionChanged" Height="25" HorizontalAlignment="Left" /> 在构造方法中: _startTime.Sele 阅读全文
posted @ 2021-06-04 18:21 卡尔赛斯 阅读(92) 评论(0) 推荐(0)
摘要: WPF: 前台代码: <Grid> <DataGrid AutoGenerateColumns="True" Height="211" HorizontalAlignment="Left" Margin="27,34,0,0" Name="dataGrid1" VerticalAlignment=" 阅读全文
posted @ 2021-05-27 12:28 卡尔赛斯 阅读(414) 评论(0) 推荐(0)
摘要: WPF if (e.RemovedItems.Count>0) { //这里面是你要写的内容 } 具体解决问题: 在你的ComboBox下拉控件中有SelectionChanged事件,页面首次加载时你得SelectionChanged事件会报错, 页面首次加载时你的程序会走SelectionCha 阅读全文
posted @ 2021-05-26 18:30 卡尔赛斯 阅读(354) 评论(0) 推荐(0)
摘要: WPF 就是在这个事件中,当点击这个事件时,会把你点的这个按钮的名字在item中的属性中显示出来,而后你自己想要什么功能就可以根据获得的这个TreeViewItem进行判断等操作 <TreeView Name="_tvw" Focusable="True" PreviewMouseLeftButto 阅读全文
posted @ 2021-05-24 18:05 卡尔赛斯 阅读(183) 评论(0) 推荐(0)
摘要: 上面时效果图,用到WPF中的DataGrid控件 addColumn();记得把这个方法写到那个页面的构造方法(我通常把那玩意儿叫做页面加载事件)中 List<string> LS = new List<string>();public void addColumn(){LS.Add("表下カップ綿 阅读全文
posted @ 2021-05-24 15:00 卡尔赛斯 阅读(180) 评论(0) 推荐(0)