TextEffect.Transform Property

Gets or sets the Transform that is applied to the TextEffect. This is a dependency property.

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

public Transform Transform { get; set; }
For XAML information, see the Transform type.

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 TextEffect Sample.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft