AdornerCoordinateSpaces 类

更新:2007 年 11 月

定义在设计器中使用的两个通用坐标空间。

命名空间:  Microsoft.Windows.Design.Interaction
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)

语法

声明
Public NotInheritable Class AdornerCoordinateSpaces
用法
不需要声明静态类的实例来访问其成员。
public static class AdornerCoordinateSpaces
public ref class AdornerCoordinateSpaces abstract sealed
public final class AdornerCoordinateSpaces

备注

布局空间指的是 Windows Presentation Foundation (WPF) 布局引擎使用的坐标系。呈现空间指的是 WPF 图面上的原始可视对象使用的坐标系。大多数装饰器都使用呈现空间。

示例

下面的代码示例演示如何将 AdornerCoordinateSpaces 值赋给 CoordinateSpace 属性。有关更多信息,请参见演练:在控件内部实现一个轨道

' Use layout space for the adorner panel.
' If render space were used, the slider would skew along with the button.
panel.CoordinateSpace = AdornerCoordinateSpaces.Layout
// Use layout space for the adorner panel.
// If render space were used, the slider would skew along with the button.
panel.CoordinateSpace = AdornerCoordinateSpaces.Layout;

继承层次结构

System.Object
  Microsoft.Windows.Design.Interaction.AdornerCoordinateSpaces

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

另请参见

参考

AdornerCoordinateSpaces 成员

Microsoft.Windows.Design.Interaction 命名空间

AdornerCoordinateSpace

AdornerPanel

其他资源

布局空间和呈现空间

演练:在控件内部实现一个轨道

了解 WPF 设计器扩展性