CompositeTransform 클래스

정의

개체에 여러 변환 작업을 적용합니다.

public ref class CompositeTransform sealed : Transform
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CompositeTransform final : Transform
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class CompositeTransform final : Transform
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CompositeTransform : Transform
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class CompositeTransform : Transform
Public NotInheritable Class CompositeTransform
Inherits Transform
<CompositeTransform .../>
상속
Object Platform::Object IInspectable DependencyObject GeneralTransform Transform CompositeTransform
특성

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

예제

이 예제에서는 CompositeTransform 또는 TransformGroup을 사용하여 개체에 동일한 변환을 적용하는 방법을 보여 줍니다.

<StackPanel Margin="50">
    <Canvas Background="Black" Width="200" Height="200">
        <Rectangle Height="100" Width="100" Fill="Red">
            <Rectangle.RenderTransform>

                <!-- This one line of markup is the equivalent of the entire
             TransformGroup block in the other Canvas below. -->
                <CompositeTransform SkewX="30" Rotation="45" ScaleX="0.8" ScaleY="0.8" />
            </Rectangle.RenderTransform>
        </Rectangle>
    </Canvas>

    <Canvas Margin="10" Background="Black" Width="200" Height="200">
        <Rectangle Height="100" Width="100" Fill="Red">
            <Rectangle.RenderTransform>
                <TransformGroup>

                    <!-- Note that you have to apply these transforms in 
                     a specific order to get the same effect as the
                     CompositeTransform. -->
                    <ScaleTransform ScaleX="0.8" ScaleY="0.8" />
                    <SkewTransform AngleX="30" />
                    <RotateTransform Angle="45" />
                </TransformGroup>
            </Rectangle.RenderTransform>
        </Rectangle>
    </Canvas>
</StackPanel>

설명

CompositeTransform은 다음과 같은 순서로 여러 변환을 적용합니다.

  1. Scale(ScaleX, ScaleY )
  2. 기울이기(기울이기, 기울이기)
  3. 회전(회전)
  4. 번역(TranslateX, Translatey)

개체에 여러 변환을 다른 순서로 적용하려는 경우 TransformGroup 을 만들고 원하는 순서로 변환을 삽입할 수 있습니다.

CompositeTransform은 모든 변환에 동일한 중심점(CenterX, CenterY)을 사용합니다. 변환당 다른 중심점을 지정하려면 TransformGroup을 사용합니다.

생성자

CompositeTransform()

CompositeTransform 클래스의 새 instance 초기화합니다.

속성

CenterX

요소의 왼쪽 위 모서리를 기준으로 CompositeTransform 에 지정된 모든 변환에 대한 중심점의 x 좌표를 DIP(디바이스 독립적 픽셀)로 가져오거나 설정합니다.

CenterXProperty

CenterX 종속성 속성을 식별합니다.

CenterY

요소의 왼쪽 위 모서리를 기준으로 CompositeTransform 에 지정된 모든 변환에 대한 중심점의 y 좌표를 DIP(디바이스 독립적 픽셀)로 가져오거나 설정합니다.

CenterYProperty

CenterY 종속성 속성을 식별합니다.

Dispatcher

이 개체가 연결된 CoreDispatcher 를 가져옵니다. CoreDispatcher는 코드가 비 UI 스레드에서 시작된 경우에도 UI 스레드에서 DependencyObject에 액세스할 수 있는 기능을 나타냅니다.

(다음에서 상속됨 DependencyObject)
Inverse

가능한 경우 이 GeneralTransform의 역 변환을 가져옵니다.

(다음에서 상속됨 GeneralTransform)
InverseCore

파생 또는 사용자 지정 GeneralTransform에서 Inverse의 반환 값에 대한 동작을 구현합니다.

(다음에서 상속됨 GeneralTransform)
Rotation

시계 방향 회전의 각도를 가져오거나 설정합니다.

RotationProperty

Rotation 종속성 속성을 식별합니다.

ScaleX

x-축 배율을 가져오거나 설정합니다. 이 속성을 사용하여 개체를 가로로 늘이거나 축소할 수 있습니다.

ScaleXProperty

ScaleX 종속성 속성을 식별합니다.

ScaleY

y-축 배율 요소를 가져오거나 설정합니다. 이 속성을 사용하여 개체를 세로로 확장하거나 축소할 수 있습니다.

ScaleYProperty

ScaleY 종속성 속성을 식별합니다.

SkewX

y-축에서 시계 반대 방향으로 측정된 x-축 기울기 각도를 가져오거나 설정합니다. 기울이기 변환은 2차원 개체에서 3차원 깊이의 환상을 만드는 데 유용할 수 있습니다.

SkewXProperty

SkewX 종속성 속성을 식별합니다.

SkewY

x-축에서 시계 반대 방향으로 측정된 y-축 기울기 각도(도)를 가져오거나 설정합니다. 기울이기 변환은 2차원 개체에서 3차원 깊이의 환상을 만드는 데 유용할 수 있습니다.

SkewYProperty

SkewY 종속성 속성을 식별합니다.

TranslateX

X-축을 따라 변환할 거리를 가져오거나 설정합니다.

TranslateXProperty

TranslateX 종속성 속성을 식별합니다.

TranslateY

y-축을 따라 개체를 변환(이동)할 거리를 가져오거나 설정합니다.

TranslateYProperty

TranslateY 종속성 속성을 식별합니다.

메서드

ClearValue(DependencyProperty)

종속성 속성의 로컬 값을 지웁니다.

(다음에서 상속됨 DependencyObject)
GetAnimationBaseValue(DependencyProperty)

애니메이션이 활성화되지 않은 경우 적용되는 종속성 속성에 대해 설정된 모든 기본 값을 반환합니다.

(다음에서 상속됨 DependencyObject)
GetValue(DependencyProperty)

DependencyObject에서 종속성 속성의 현재 유효 값을 반환합니다.

(다음에서 상속됨 DependencyObject)
ReadLocalValue(DependencyProperty)

로컬 값이 설정된 경우 종속성 속성의 로컬 값을 반환합니다.

(다음에서 상속됨 DependencyObject)
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)

DependencyObject instance 특정 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)

적용 대상

추가 정보