![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
试验田足迹
OSCAR_NJU
这个作者很懒,什么都没留下…
展开
-
DataGrid排序错误:必须至少有一个对象实现
<br />当DataGrid使用对象进行了分组时候,该对象类型必须实现 IComparable 接口,否则出错:必须至少有一个对象实现。<br /> <br /> ObservableCollection<TaskProject> list1 = new ObservableCollection<TaskProject>(); for (int i = 1; i <= 2; i++) { list1.Add(new TaskProject() { P原创 2010-09-11 01:34:00 · 1134 阅读 · 0 评论 -
ObservableCollection 与 UI 线程
<br /> PagedCollectionView taskListView = new PagedCollectionView(cache.Collection4UI); public class TaskCache : SyncCache<Task> { protected override void DoUpdateCache(ObservableCollection<Task> collection) { Random random = new Random(1022原创 2010-09-13 02:56:00 · 1060 阅读 · 0 评论 -
PagedCollectionView
<br /><UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" xmlns:d="http://sch原创 2010-09-09 23:00:00 · 861 阅读 · 0 评论 -
ComboBox 的绑定
<br /><ComboBox x:Name="_ComboBox" SelectedItem="{Binding Path=CarryStatus, Mode=TwoWay}" DisplayMemberPath="Text" VerticalAlignment="Top" Height="30"/> this._ComboBox.SelectionChanged += new SelectionChangedEventHandler(_ComboBox_Se原创 2010-09-14 22:16:00 · 375 阅读 · 0 评论