C# 有没有办法镜像xamarin的标签?
是否可以完全镜像标签,而不只是反转文本。我正在构建一个应用程序,它需要能够从iPad屏幕上投影,所以我需要对它进行镜像。我可能不完全理解你所说的镜像是什么意思;但如果它类似于镜像,比如在镜子中看着自己;然后旋转或翻转就是你需要的。这段代码将指导您C# 有没有办法镜像xamarin的标签?,c#,xaml,xamarin,xamarin.forms,C#,Xaml,Xamarin,Xamarin.forms,是否可以完全镜像标签,而不只是反转文本。我正在构建一个应用程序,它需要能够从iPad屏幕上投影,所以我需要对它进行镜像。我可能不完全理解你所说的镜像是什么意思;但如果它类似于镜像,比如在镜子中看着自己;然后旋转或翻转就是你需要的。这段代码将指导您 <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="Counter.Page1">
<ContentPage.Content>
<StackLayout BackgroundColor="White" Padding="60" VerticalOptions="Center">
<Label Text="{Binding MainPageEditorText}" />
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal">
<VisualState.Setters>
<Setter Property="Scale"
Value="1" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="Pressed">
<VisualState.Setters>
<Setter Property="Scale"
Value="0.99" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
</StackLayout>
</ContentPage.Content>
嗨,你解决了吗?如果答案有帮助,记得在有时间时标记它。尝试旋转Z=180。
<StackLayout Margin="20">
<Label Text="No Rotation"/>
<Image Source="Assets/ten8ba4rcfqm.png"/>
<Label Text="RotationX 180"/>
<Image Source="Assets/ten8ba4rcfqm.png" RotationX="180"/>
<Label Text="RotationY 180"/>
<Image Source="Assets/ten8ba4rcfqm.png" RotationY="180"/>
</StackLayout>