Wpf
freedom541
这个作者很懒,什么都没留下…
展开
-
WPF,ListView设置分组
今天遇到一个问题,就是在ListView中设置分组。想了很久在网上早了些资料作出一个例子。 <ListView Height="224" HorizontalAlig原创 2013-04-22 15:58:30 · 3954 阅读 · 0 评论 -
WPF智能输入提示
WPF智能输入提示是用一个textBox和Popup完成的,下面看具体代码:<Window x:Class="WPFPopup.ABCD"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"原创 2013-04-16 17:29:46 · 2003 阅读 · 1 评论 -
<dxlc:LayoutGroup view="GroupBox"/>控件修改背景色
解决LayoutGroup控件背景色和标题背景色:<Window x:Class="WpfApplication2.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/原创 2013-04-15 13:39:34 · 9150 阅读 · 0 评论 -
Xceed DataGrid 中设置增加行的方法
废话不多说直接贴代码:<Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid" xmlns:local="clr-namespace:Xceed.Wpf.Documentation"> <xcdg:DataGridCollectionViewSource x:Key="cvs_persons"原创 2013-04-12 21:59:57 · 1128 阅读 · 0 评论 -
Datagrid.Validating.Data(验证)
验证说起来也不复杂,在对应的列中添加和列名中的fileName一样">><local:YearValidationRule />xcdg:DataGridBindingInfo.ValidationRules> 这样的属性并在YearValidationRule中写相应的验证代码即可。本例中加入了验证改变背景色代码。<Window x:Class="Datagrid.Validatin原创 2013-04-15 13:44:00 · 854 阅读 · 0 评论 -
wpf利用后台生成grid表格以及tabcontrol,border等用法
wpf利用后台生成grid表格以及tabcontrol,border等用法 TabControl tabCtrol = new TabControl(); int count = 0; if (listPath.Count % 25 == 0) { count = listPat原创 2013-05-22 09:37:46 · 5123 阅读 · 0 评论