SimpleWindow
载入中...
搜索中...
未找到
INotifyCollectionChanged.h
1#pragma once
2
3#include "Event.h"
4#include "IList.h"
5
6namespace sw
7{
8 // 前向声明
9 class INotifyCollectionChanged;
10 class NotifyCollectionChangedEventArgs;
11
17
22 Add,
23 Remove,
24 Replace,
25 Move,
26 Reset
27 };
28
56
85}
Definition Event.h:13
非模板列表接口,提供基于Variant的元素访问
Definition IList.h:11
支持集合变更通知的接口
Definition INotifyCollectionChanged.h:61
Event< NotifyCollectionChangedEventHandler > CollectionChanged
集合变更事件,当集合发生添加、移除、替换、移动或重置等变更时触发
Definition INotifyCollectionChanged.h:66
virtual NotifyCollectionChangedEventHandler & GetCollectionChangedEventDelegate()=0
获取集合变更事件委托的引用
virtual ~INotifyCollectionChanged()=default
虚析构函数
值转换器接口
Definition IValueConverter.h:14
集合变更事件参数类型
Definition INotifyCollectionChanged.h:33
int oldIndex
记录移动项的原始索引
Definition INotifyCollectionChanged.h:54
NotifyCollectionChangedAction action
集合变更的原因
Definition INotifyCollectionChanged.h:38
int index
变更发生的项索引
Definition INotifyCollectionChanged.h:49
IList * list
变更发生的集合对象
Definition INotifyCollectionChanged.h:44
SimpleWindow框架的顶级命名空间,所有公共类型、控件、枚举和工具函数均定义于此。
Definition Alignment.h:4
NotifyCollectionChangedAction
描述集合变更的原因
Definition INotifyCollectionChanged.h:21
事件参数结构体
Definition Event.h:294