Device.SetFlowDirection(FlowDirection) 方法

定义

在设备上设置流方向。

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static void SetFlowDirection (Xamarin.Forms.FlowDirection value);
static member SetFlowDirection : Xamarin.Forms.FlowDirection -> unit

参数

value
FlowDirection

要设置的新流方向值。

属性
System.ComponentModel.EditorBrowsableAttribute

注解

下面包含有关从 右到左本地化的流方向的几个要点。 开发人员应查阅该文档,详细了解从右到左支持的限制,并了解在各种目标平台上实现从右到左支持的要求。

FlowDirection对于没有父级的视觉元素,默认值为 LeftToRight,即使在 为 的FlowDirection平台上也是如此RightToLeft。 因此,开发人员必须有意选择从右到左的布局。 开发人员可以选择从右到左布局,方法是将根元素RightToLeft的 属性设置为 FlowDirection 从右到左的布局,或 设置为 MatchParent 匹配设备布局。

具有父级的所有 VisualElement默认为 MatchParent

适用于