【发布时间】:2018-01-02 06:05:12
【问题描述】:
如果我使用样式,我的应用程序总是带有白屏。 当我调试时我发现它并没有离开这条线
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发生
请帮忙
【问题讨论】:
标签: xaml xamarin.forms styles