C# Xamarin.Forms.Xaml.XamlParseException:无法分配属性";IsVisable“是的:属性不存在
调用HelloXamlPage而不是MainPage()强>C# Xamarin.Forms.Xaml.XamlParseException:无法分配属性";IsVisable“是的:属性不存在,c#,xaml,xamarin,xamarin.forms,cross-platform,C#,Xaml,Xamarin,Xamarin.forms,Cross Platform,调用HelloXamlPage而不是MainPage() 有人能帮我吗 看起来像是打字错误。用IsVisible更改IsVisible您有一个打字错误-它的IsVisible。您可能还想打开XAML编译,以便在编译应用程序时看到这些类型的错误。 <?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xm
有人能帮我吗 看起来像是打字错误。用
IsVisible
更改IsVisible您有一个打字错误-它的IsVisible
。您可能还想打开XAML编译,以便在编译应用程序时看到这些类型的错误。
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="XamlTest.HelloXamlPage">
<Label Text="Hello, XAML!"
VerticalOptions="Start"
HorizontalTextAlignment="Center"
Rotation="-15"
IsVisable="true"
FontSize="Large"
FontAttributes="Bold"
TextColor="Black"
/>
</ContentPage>
public partial class App : Application
{
public App()
{
InitializeComponent();
MainPage = new XamlTest.HelloXamlPage(); // called HelloXamlPage instead of MainPage();
}