Share via


FontIconSource.MirroredWhenRightToLeft 屬性

定義

取得或設定值,這個值表示圖示是否在包含專案的 FlowDirectionRightToLeft時鏡像。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

public:
 property bool MirroredWhenRightToLeft { bool get(); void set(bool value); };
bool MirroredWhenRightToLeft();

void MirroredWhenRightToLeft(bool value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
bool MirroredWhenRightToLeft();

void MirroredWhenRightToLeft(bool value);
public bool MirroredWhenRightToLeft { get; set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
public bool MirroredWhenRightToLeft { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] set; }
Public Property MirroredWhenRightToLeft As Boolean
<FontIconSource MirroredWhenRightToLeft="bool"/>

屬性值

Boolean

bool

如果FlowDirection 為 FlowDirection.RightToLeft時,圖示會鏡像,則為true;否則為false。 預設值為 false

屬性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute

備註

您可以設定 MirroredWhenRightToLeft 屬性,使其在包含元素的 FlowDirectionRightToLeft時,將圖像顯示為鏡像。 當您使用 FontIcon 來顯示圖示做為控制項範本的一部分時,您通常會使用這個屬性,而且圖示必須與控制項的其餘部分一起鏡像。

適用於