Export (0) Print
Expand All

Window.Left Property

Gets or sets the position of the window's left edge, in relation to the desktop. This is a dependency property.

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

[TypeConverterAttribute("System.Windows.LengthConverter, PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")]
public double Left { get; set; }
<object Left="double" .../>

Property Value

Type: System.Double
The position of the window's left edge, in logical units (1/96th of an inch).

Identifier field

LeftProperty

Metadata properties set to true

None

If you do not specify a value, Left is set to the system default value. You can also specify the system default value by setting Left to NaN. Neither NegativeInfinity nor PositiveInfinity is a valid value for Left.

NoteNote:

You cannot set or get this property when a window is hosted in a browser.

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:
© 2014 Microsoft