OffsetY Property
Collapse the table of content
Expand the table of content

TranslateTransform3D.OffsetY Property

Gets or sets the Y-axis value of the translation's offset. This is a dependency property.

Namespace:  System.Windows.Media.Media3D
Assembly:  PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

public double OffsetY { get; set; }
<object OffsetY="double" .../>

Property Value

Type: System.Double
Double that represents the Y-axis value of the translation's offset.

Identifier field

OffsetYProperty

Metadata properties set to true

None

The following code excerpt sets this property on a transform applied to a GeometryModel3D.

<GeometryModel3D.Transform>
    <TranslateTransform3D
      OffsetX="2" OffsetY="0" OffsetZ="-1"   >
    </TranslateTransform3D>
</GeometryModel3D.Transform>

More Code

How to: Animate 3-D Translations This topic demonstrates how to animate a translation transformation set on a 3-D model.

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

Community Additions

ADD
Show:
© 2016 Microsoft