Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/257.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Xamarin.Forms.Xaml.XamlParseException:无法分配属性";IsVisable“是的:属性不存在_C#_Xaml_Xamarin_Xamarin.forms_Cross Platform - Fatal编程技术网

C# Xamarin.Forms.Xaml.XamlParseException:无法分配属性";IsVisable“是的:属性不存在

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

调用HelloXamlPage而不是MainPage()
有人能帮我吗

看起来像是打字错误。用
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();
        }