Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Transform Property

TextEffect.Transform Property

Gets or sets the Transform that is applied to the TextEffect.

Namespace:  System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public Transform Transform { get; set; }

Property Value

Type: System.Windows.Media.Transform
The Transform value of the TextEffect.

Identifier field

TransformProperty

Metadata properties set to true

None

In the following markup example, a TextEffect is created for a TextBlock object. In this case, the effect is a rotation animation.

<TextBlock.TextEffects>
  <!-- The TextEffect to animate. -->
  <TextEffect PositionCount="1" x:Name="MyTextEffect">
    <TextEffect.Transform>
      <RotateTransform x:Name="TextEffectRotateTransform" 
        Angle="0" CenterX="10" CenterY="10" />
    </TextEffect.Transform>
  </TextEffect>
</TextBlock.TextEffects>

To view the complete sample, see .

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft