CPF 命名空间 |
[缺少 "N:CPF" 的 <summary> 文档]
| 类 | 说明 | |
|---|---|---|
| AttachedExtenstions |
定义一些常用附加属性
| |
| AttachedProperties | ||
| BindHelper | ||
| Binding |
绑定
| |
| BindingDescribe |
简化绑定操作
| |
| Bindings |
设置绑定
| |
| Classes | ||
| CollectionT |
包含项目添加移出事件的泛型集合,由于System.Collections.ObjectModel.ObservableCollection的Clear操作事件里没有OldItems值,所以重新定义个
| |
| Command | ||
| Commands |
绑定的命令集合
| |
| ComputedAttribute |
计算属性,设置需要关联的属性
| |
| ComputeProtertyInfo | ||
| ContentElement | ||
| CpfObject |
默认所有属性都是依赖属性,如果不想作为依赖属性,属性上加上[NotCpfProperty]特性。不能使用new来覆盖已经定义为依赖属性的属性,最多255个依赖属性
| |
| CPFPropertyChangedEventArgs | ||
| Cursor |
用Cursors.****来设置
| |
| FloatUtil | ||
| GeneralTransform |
一般变换矩阵,用来做动画
| |
| HybridDictionaryTKey, TValue |
自动切换List 和 Dictionary,如果4条记录以下的,比直接使用Dictionary稍微省一丢丢内存
| |
| LayoutManager | ||
| LinearGradientFill |
线性渐变填充
| |
| MatrixTransform | ||
| NotCpfProperty |
不使用属性管理
| |
| ObjectExtenstions |
Object数据转换扩展
| |
| OverrideMetadata |
属性元数据重写
| |
| PropertyChangedAttribute |
定义该方法为属性通知方法,支持绑定多个,方法类型 void Method(object newValue, object oldValue, CPF.PropertyMetadataAttribute attribute)
| |
| PropertyMetadataAttribute |
属性元数据,设置默认值,必须显示转换
| |
| RadialGradientFill |
径向渐变
| |
| Relation |
元素关系
| |
| RotateTransform | ||
| RoutedEventArgs |
路由事件
| |
| ScaleTransform | ||
| SkewTransform | ||
| SolidColorFill |
纯色填充
| |
| TextureFill |
纹理图片填充
| |
| Transform |
字符串格式和CSS的差不多,但是没有单位,旋转没有xyz,其他变换没有z,比如:定义单个或者多个rotate(20) skew(15,3) translate(100,200) 或者单独一个 matrix(m11, m12, m21, m22, offsetX, offsetY) 默认值是Identity
| |
| TransformCollection | ||
| TransformGroup | ||
| TranslateTransform | ||
| TrieTreeTValue |
字符串快速检索数据,不要使用,测试的
| |
| Triggers | ||
| UIElement |
提供UI相关的特性,图像,鼠标事件,触摸事件,布局,拖拽事件
| |
| UIElementAddedEventArgs | ||
| UIElementCollection | ||
| UIElementRemovedEventArgs | ||
| UIElementTemplate |
UI元素模板,可以是UIElement的实例或者Type用type的话可以完全克隆出新元素
| |
| UIElementTemplateT |
UI元素模板,可以是Type或者UIElement的实例,用type的话可以完全克隆出新元素。限定模板基类
| |
| UIPropertyMetadataAttribute |
UI属性元数据,设置默认值,必须显示转换
| |
| ViewFill |
定义一个可视化元素的填充,默认支持 隐式转换的字符串格式,支持格式: #rrggbbaa、#rrggbb、r,g,b、r,g,b,a、或者直接设置图片,渐变格式 linear-gradient(startX startY,endX endY,color1 stop1,color2 stop2....) 颜色只能是#开头的格式,stop是0到1的数字,图片格式:url(img.gif) [no-repeat/repeat] [none/fill/uniform/UniformToFill]
| |
| VisibleUIElement |
保存当前在可视范围内的元素
| |
| Visual |
表示一个可视化元素,提供呈现支持,包括命中测试,坐标变换
| |
| VisualFill |
使用 UIElement 绘制区域。
| |
| WeakEventHandler |
弱引用事件
| |
| WeakEventHandlerList |
弱引用事件,可以防止注册之后忘记取消绑定导致内存泄露问题,以及重复注册问题
|
| 结构 | 说明 | |
|---|---|---|
| CollectionChangedEventArgsT | ||
| FloatField |
单精度浮点带单位
| |
| OptionalParameterT |
定义一个可选参数
| |
| PixelPoint |
Represents a point in device pixels.
| |
| PixelRect | ||
| PixelSize |
Represents a size in device pixels.
| |
| PointField |
支持单位百分比的Point,格式:10,10 10%,10%
| |
| SizeField |
支持单位百分比的Size
| |
| Thickness |
表示四周的厚度,字符串格式 all、left,top,right,bottom
| |
| ThicknessField |
| 接口 | 说明 | |
|---|---|---|
| IEditor |
定义一个编辑器
| |
| ISortNotify |
提供排序之后的通知
|
| 委托 | 说明 | |
|---|---|---|
| AttachedValue |
获取或者设置附加属性值
| |
| AttachedPropertyChanged |
CpfObject obj, string propertyName, object defaultValue, object oldValue, ref object newValue
| |
| EventHandlerRefTEventArgs |
| 枚举 | 说明 | |
|---|---|---|
| BindingMode |
This enum describes how the data flows through a given Binding
| |
| CacheMode |
图像缓存模式
| |
| CollectionChangedAction | ||
| CommandParameter |
命令参数的数据
| |
| Cursors |
标准光标样式
| |
| UIPropertyOptions |
属性变化之后的操作
| |
| Unit | ||
| Visibility |