C# 使用Xamarin添加全局样式。使用Prism模板包制作的表单应用程序

C# 使用Xamarin添加全局样式。使用Prism模板包制作的表单应用程序,c#,xamarin,xamarin.forms,prism,C#,Xamarin,Xamarin.forms,Prism,我使用Prism模板包创建了一个应用程序来创建一个新的Xamarin.Forms项目。但不幸的是,我无法设计我的应用程序 App.xaml <?xml version="1.0" encoding="utf-8" ?> <prism:PrismApplication xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xam

我使用Prism模板包创建了一个应用程序来创建一个新的Xamarin.Forms项目。但不幸的是,我无法设计我的应用程序

App.xaml

<?xml version="1.0" encoding="utf-8" ?>
<prism:PrismApplication xmlns="http://xamarin.com/schemas/2014/forms"
         xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
         xmlns:prism="clr-namespace:Prism.Unity;assembly=Prism.Unity.Forms"
         x:Class="StyleThisOneAlso.App">
        <Application.Resources>

        <!-- Application resource dictionary -->
        <ResourceDictionary>
            <Style TargetType="Label">
                <Setter Property="TextColor" Value="Green"/>
            </Style>
        </ResourceDictionary>
    </Application.Resources>
</prism:PrismApplication>


但是这样做并不会使标签变成绿色。

您使用的是Visual Studio 2017吗?我刚从2015年换到2017年,全球风格似乎不再有效。

我实际上犯了一个错误。我正在使用Xamarin Live Player测试我的应用程序,这就是为什么它不工作的原因。我读到live player不支持第三方库,比如我正在使用的Prism。当我调试我的应用程序时,这些样式会再次工作