Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

FrameworkElement.FlowDirection Property

Gets or sets the direction that text and other user interface (UI) elements flow within any parent element that controls their layout. 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
[LocalizabilityAttribute(LocalizationCategory.None)]
public FlowDirection FlowDirection { get; set; }
<object FlowDirection="FlowDirection"/>
This property can also be set on classes that are not FrameworkElement derived classes, by the following XAML attached property usage:<object FrameworkElement.FlowDirection="FlowDirection"/>

Property Value

Type: System.Windows.FlowDirection
The direction that text and other UI elements flow within their parent element, as a value of the enumeration. The default value is LeftToRight.

Identifier field

FlowDirectionProperty

Metadata properties set to true

AffectsMeasure, AffectsParentArrange, Inherits

This property is both a dependency property and an attached property; see Remarks.

The dependency property usage sets the FlowDirection on this element. Because of property value inheritance, setting FlowDirection on an element can potentially set FlowDirection on all child elements that did not set FlowDirection locally or though other means such as styles.

This property is not automatically set as part of any application culture information, because an element might contain content that is not necessarily intended to obey the general flow direction implied by the culture information. For more information on globalization considerations, see Globalization for the Windows Presentation Foundation.

This property has a defined common language runtime (CLR) property accessor, so it functions as a dependency property. However, it is also registered as attached, so it can also function as an attached property. The attached registration is mainly so that property value inheritance is supported, but the property can also be used as a true attached property. The attached property usage is only relevant if the object you intend to set the flow direction on has a FrameworkElement parent element that performs layout upon it, is itself not a FrameworkElement, and does not already have a more directly defined FlowDirection property. (Some of the flow document classes such as Block and Inline define their own FlowDirection, and this property can also set the flow direction. The property value is then read by the eventual content host without requiring attached property usage.)

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
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft. All rights reserved.