点击或拖拽改变大小

UIElement 方法

UIElement 类型公开以下成员。

方法
  名称说明
公共方法AddHandler
为指定的事件添加事件处理程序,并将该处理程序添加到当前元素的处理程序集合中。
(继承自 CpfObject。)
公共方法Arrange
Arranges the control and its children.
受保护的方法ArrangeCore
The default implementation of the control's arrange pass.
受保护的方法ArrangeOverride
Positions child elements as part of a layout pass.
公共方法BeginInvoke
公共方法CaptureMouse
捕获鼠标,只有鼠标在元素范围内按下,而且IsEnabled为TRUE的时候才能捕获。当对象已捕获鼠标后,它接收鼠标输入,不论鼠标指针是否在其边界区域。 通常只有在执行模拟拖动操作时才捕获鼠标。 若要释放鼠标捕获,请对具有捕获的对象调用 ReleaseMouseCapture 方法。
公共方法ClearLocalValue
清除本地值
(继承自 CpfObject。)
公共方法Clone
克隆依赖属性,绑定,子元素,触发器
(重写 CpfObjectClone.)
公共方法CopyTo(UIElement)
将依赖属性本地值,绑定,子元素,触发器,拷贝到另外个对象
公共方法CopyTo(CpfObject, Boolean)
将依赖属性本地值和绑定拷贝到另外个对象
(继承自 CpfObject。)
公共方法Dispose (继承自 CpfObject。)
受保护的方法Dispose(Boolean) (重写 CpfObjectDispose(Boolean).)
公共方法Equals (继承自 Object。)
受保护的方法Finalize (继承自 CpfObject。)
公共方法FindT
查询所有内部元素,包含所有层
公共方法FindPresenter
查找标记了的特殊元素
公共方法FindPresenterT
查找标记了的特殊元素
公共方法FindPresenterT(FuncT, Boolean)
查找标记了的特殊元素,绑定的时候使用
公共方法FindPresenterByName(String)
通过Name查找标记了的特殊元素。绑定的时候用
公共方法FindPresenterByNameT(String)
通过Name查找标记了的特殊元素
公共方法Focus
公共方法Focus(NavigationMethod)
公共方法GetChildren
获取子元素
公共方法GetClipBounds
获取相对于父级的正矩形剪辑区域
公共方法GetClipBounds(Rect)
获取内部相对于父级的正矩形剪辑区域
公共方法GetContentBounds (重写 VisualGetContentBounds.)
公共方法GetCreationCode (继承自 CpfObject。)
公共方法GetHashCode (继承自 Object。)
公共方法GetHasLocalValueProperties
获取有LocalValue的属性和值
(继承自 CpfObject。)
公共方法GetHostClipBounds
获取在View上对应的剪辑区域
公共方法GetIntPtr
获取对象唯一地址
公共方法GetMatrixToParent
获取该元素相对Parent的变换矩阵
公共方法GetMatrixToRoot
获取该元素相对Root的最终变换矩阵
公共方法GetPropertyMetadata (继承自 CpfObject。)
公共方法GetType (继承自 Object。)
受保护的方法GetValue(Byte)
内部使用,请勿调用
(重写 CpfObjectGetValue(Byte).)
公共方法GetValueT(String) (重写 CpfObjectGetValueT(String).)
公共方法HasLocalOrStyleValue (继承自 CpfObject。)
公共方法HasLocalValue
是否已经设置了本地值
(继承自 CpfObject。)
公共方法HasProperty
是否包含这个依赖属性
(继承自 CpfObject。)
公共方法HitTest
用自己的内部坐标测试内部元素,从最深的后代元素到根(自己)
公共方法HitTestCore
确定点是否在可视对象的内部,point需要包含偏移
(继承自 Visual。)
公共方法Invalidate
使图像无效化,下次更新的时候重绘
公共方法InvalidateArrange
Invalidates the arrangement of the control and queues a new layout pass.布局
公共方法InvalidateMeasure
Invalidates the measurement of the control and queues a new layout pass.测量
公共方法Invoke
公共方法IsAncestors
是否是该元素的祖先
公共方法Measure
测量期望尺寸
受保护的方法MeasureCore
测量期望尺寸
受保护的方法MeasureOverride
在派生类中重写时,测量子元素或者内容在布局中所需的大小,availableSize不包含当前对象的Margin和Padding,并确定由 UIElement 派生的类的大小。
受保护的方法MemberwiseClone (继承自 Object。)
公共方法NotifyPropertyChanged
触发INotifyPropertyChanged的PropertyChanged事件
(继承自 CpfObject。)
受保护的方法OnAttachedChanged (重写 CpfObjectOnAttachedChanged(Type, String, Object, Object, Object).)
受保护的方法OnAttachedToVisualTree
Called when the control is added to a visual tree.
受保护的方法OnCaptureMouse
受保护的方法OnChildDesiredSizeChanged
受保护的方法OnDetachedFromVisualTree
Called when the control is removed from a visual tree.
受保护的方法OnDoubleClick
受保护的方法OnDragEnter
受保护的方法OnDragLeave
受保护的方法OnDragOver
受保护的方法OnDrop
受保护的方法OnGetDefaultValue (重写 CpfObjectOnGetDefaultValue(PropertyMetadataAttribute).)
受保护的方法OnGotFocus
受保护的方法OnInitializeComputeProterty
用于初始化计算属性,请不要调用和重写,内部使用
(继承自 CpfObject。)
受保护的方法OnKeyDown
受保护的方法OnKeyUp
受保护的方法OnLayoutUpdated
受保护的方法OnLostFocus
受保护的方法OnMouseDown
受保护的方法OnMouseEnter
受保护的方法OnMouseLeave
受保护的方法OnMouseMove
受保护的方法OnMouseUp
受保护的方法OnMouseWheel
受保护的方法OnOverrideMetadata
该类型的第一个对象构造的时候调用,重写属性元数据,一般重写属性的代码写在base.OnOverrideMetadata后面
(继承自 CpfObject。)
受保护的方法OnPreviewMouseDown
受保护的方法OnPreviewMouseUp
受保护的方法OnPropertyChanged (重写 CpfObjectOnPropertyChanged(String, Object, Object, PropertyMetadataAttribute).)
受保护的方法OnRaiseEventTEventArgs (继承自 CpfObject。)
受保护的方法OnReleaseMouseCapture
受保护的方法OnRender (继承自 Visual。)
受保护的方法OnSetValue (重写 CpfObjectOnSetValue(String, Object).)
受保护的方法OnTextInput
受保护的方法OnUIElementAdded
受保护的方法OnUIElementRemoved
公共方法PointToClient
将指定屏幕点的像素位置计算成工作区坐标。
公共方法PointToScreen
将指定工作区点的位置计算成屏幕坐标。像素坐标
(重写 VisualPointToScreen(Point).)
公共方法PointToView
将指定工作区点的位置计算成相对View的位置
公共方法RaiseEventTEventArgs
触发事件
(继承自 CpfObject。)
公共方法ReleaseMouseCapture
ReleaseMouseCapture 方法对于已通过使用 CaptureMouse 方法捕获鼠标的对象禁用鼠标捕获。 当对象已捕获鼠标后,它接收鼠标输入,不论鼠标指针是否在其边界区域。 对不具有鼠标捕获的对象调用 ReleaseMouseCapture 无效。
公共方法RemoveHandler
从此元素中删除指定的路由事件处理程序。
(继承自 CpfObject。)
公共方法Render (重写 VisualRender(DrawingContext).)
受保护的方法SetValue(Object, Byte)
内部使用,请勿调用
(重写 CpfObjectSetValue(Object, Byte).)
公共方法SetValueT(T, String) (重写 CpfObjectSetValueT(T, String).)
公共方法ToString (重写 ObjectToString.)
公共方法TransformPoint
坐标转换,将自己内部坐标转换成父级坐标
公共方法TransformPointInvert
坐标转换,将父级坐标通过逆向变换为自己内部坐标
Top
扩展方法
  名称说明
公共扩展器方法ConvertTo
类型转换
(由 ObjectExtenstions 定义。)
公共扩展器方法Delay
延迟操作
(由 ObjectExtenstions 定义。)
公共扩展器方法Equal
对象是否相等
(由 ObjectExtenstions 定义。)
公共扩展器方法GetCreationCode (由 ObjectExtenstions 定义。)
公共扩展器方法GetPropretyValue
获取对象属性值
(由 ObjectExtenstions 定义。)
公共扩展器方法GetValue
快速动态获取对象的属性值
(由 FastReflectionExtensions 定义。)
公共扩展器方法Invoke
快速动态调用对象的方法
(由 FastReflectionExtensions 定义。)
公共扩展器方法SetPropretyValue
设置属性值
(由 ObjectExtenstions 定义。)
公共扩展器方法SetValue
快速动态设置对象的属性值
(由 FastReflectionExtensions 定义。)
Top
参见