语言

TransformGroup 类

定义

表示由其他 Transform 对象组成的复合转换。

public ref class TransformGroup sealed : Transform
/// [Microsoft.UI.Xaml.Markup.ContentProperty(Name="Children")]
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.UI.Xaml.WinUIContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class TransformGroup final : Transform
[Microsoft.UI.Xaml.Markup.ContentProperty(Name="Children")]
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.UI.Xaml.WinUIContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class TransformGroup : Transform
Public NotInheritable Class TransformGroup
Inherits Transform
<TransformGroup>
  oneOrMoreTransforms
</TransformGroup>
继承
Object Platform::Object IInspectable DependencyObject GeneralTransform Transform TransformGroup
属性

示例

此示例显示用于使用 TransformGroup 填充 RenderTransform 属性的标记。

<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
    <TextBlock FontSize="28" Text="Hello" Foreground="Black">
        <TextBlock.RenderTransform>
            <TransformGroup>
                <RotateTransform Angle="45" />
                <SkewTransform CenterX="0" CenterY="0" AngleX="60"/>
            </TransformGroup>
        </TextBlock.RenderTransform>
    </TextBlock>
</StackPanel>

构造函数

名称 说明
TransformGroup()

初始化 TransformGroup 类的新实例。

属性

名称 说明
Children

获取或设置子 Transform 对象的集合。

ChildrenProperty

标识 Children 依赖项属性。

Dispatcher

始终在 Windows 应用 SDK 应用中返回 null 。 请改用 DispatcherQueue 。

(继承自 DependencyObject)
DispatcherQueue

获取 DispatcherQueue 与此对象关联的对象。 表示 DispatcherQueue 即使代码是由非 UI 线程启动,也可以访问 DependencyObject UI 线程上的设施。

(继承自 DependencyObject)
Inverse

获取此 GeneralTransform 的反转换(如果可能)。

(继承自 GeneralTransform)
InverseCore

在派生或自定义 GeneralTransform 中实现 Inverse 的返回值的行为。

(继承自 GeneralTransform)
Value

获取描述此 TransformGroup 所表示的转换的矩阵结构。

方法

名称 说明
ClearValue(DependencyProperty)

清除依赖属性的本地值。

(继承自 DependencyObject)
GetAnimationBaseValue(DependencyProperty)

返回为依赖属性建立的任何基值,在动画未处于活动状态的情况下,该属性将适用。

(继承自 DependencyObject)
GetValue(DependencyProperty)

从 DependencyObject 返回依赖属性的当前有效值。

(继承自 DependencyObject)
ReadLocalValue(DependencyProperty)

如果设置了本地值,则返回依赖属性的本地值。

(继承自 DependencyObject)
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)

注册一个通知函数,用于侦听此 DependencyObject 实例上对特定 DependencyProperty 所做的更改。

(继承自 DependencyObject)
SetValue(DependencyProperty, Object)

设置 DependencyObject 上的依赖属性的本地值。

(继承自 DependencyObject)
TransformBounds(Rect)

转换指定的边界框,并返回一个轴对齐的边界框,该框的大小正好足以包含它。

(继承自 GeneralTransform)
TransformBoundsCore(Rect)

提供替代派生转换类中的 TransformBounds 行为的方法。

(继承自 GeneralTransform)
TransformPoint(Point)

使用此转换对象的逻辑转换指定点,并返回结果。

(继承自 GeneralTransform)
TryTransform(Point, Point)

尝试转换指定的点并返回一个值,该值指示转换是否成功。

(继承自 GeneralTransform)
TryTransformCore(Point, Point)

提供替代派生转换类中的 TryTransform 行为的方法。

(继承自 GeneralTransform)
UnregisterPropertyChangedCallback(DependencyProperty, Int64)

取消以前通过调用 RegisterPropertyChangedCallback 注册的更改通知。

(继承自 DependencyObject)

适用于

另请参阅