0
如果我使用樣式,我的應用程序總是帶有白色屏幕。 當我調試我發現它不留行Xamarin樣式不起作用 - xamarin.forms
InitializeComponent();
是在應用程序中的XAML CS
它建立,但永遠得到白色屏幕後。
這是我的應用程序的XAML:
<?xml version="1.0" encoding="utf-8" ?>
<Application xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="neoFly_Montana.App">
<Application.Resources>
<!-- Application resource dictionary -->
<ResourceDictionary>
<Color x:key="BackButton">Black</Color>
<Style x:Key="button" TargetType ="but">
<Setter Property="BackgroundColor" Value="{StaticResource BackButton}"/>
</Style>
</ResourceDictionary>
</Application.Resources>
例外:
Xamarin.Forms.Xaml.XamlParseException:位置11:14。類型,但不是在的xmlns http://xamarin.com/schemas/2014/forms發現發生
請幫助
非常感謝你 –