本文介绍了Xamarin形式FreshMvvm uwp主题不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我刚开始使用Xamarin Forms,并且已经成功构建了IOS和UWP测试应用程序,并已部署到iPhone和Windows 10移动电话上.

I have just started with Xamarin Forms and I have successfully built an IOS and UWP test app and have deployed to both an iPhone and Windows 10 Mobile phone.

但是在Windows 10移动设备中,应用程序使用的主题与默认系统主题不匹配.

However in the Windows 10 Mobile device the theme that the app uses doesn't match the default system theme.

我没有在应用程序中设置任何主题选项,我有一个基本的FreshNavigationContainer实现以及两个页面和页面模型.

I haven't set any theme options in the application, I have a basic FreshNavigationContainer implementation and two pages and page models.

基于ios主题,该应用程序看起来正确,但是在UWP中,该设备设置为使用深色,但是除了我使用表格视图和EntryCell时,该应用程序最多都显示了浅色主题.轻巧,难以阅读.

The app looks correct based on the ios theme, but in UWP the device is set to use dark, but the app is showing light themeing at the most part, apart from when I use a table view and EntryCell, the labels are light, so hardly readable.

我不确定从何处去检查什么可能导致UWP应用不遵守系统默认颜色?

I'm not sure where to go from here to check what could be causing the UWP app to not respect the system default colors?

设备正在使用内部版本10.0.14965.1001,这对您有帮助吗,所有更新已应用于所有当前的nuget软件包,xamarin等.

The device is using build 10.0.14965.1001 is this is any help and all updates have been applied to all current nuget packages, xamarin etc.

推荐答案

在您的App.xaml中,您将拥有一个名为RequestedTheme的属性.删除它,您的应用将尊重用户的主题选择.

In your App.xaml, you will have a property called RequestedTheme. Remove that and your app will respect user's theme choice.

这篇关于Xamarin形式FreshMvvm uwp主题不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 10:57