FileSavePicker光在主题上的C#窗口地铁应用 [英] FileSavePicker in Light theme on C# windows metro App
问题描述
我不知道如何改变FileSavePicker为主题的地铁应用程序。我只找到这个问题的答案为Android和它并没有帮助这么多。我没有发现MSDN文档任何东西。 那么,有可能改变一个FileSavePicker的主题?是否存在一个方法或属性,如fileSavePicker.RequestedTheme()?
只是信息我定义我的应用程序的主题App.xaml中:
<应用
X:类=ClientAirNavLight_WS.App
的xmlns =http://schemas.microsoft.com/winfx/2006/xaml/$p$psentation
的xmlns:X =http://schemas.microsoft.com/winfx/2006/xaml
XMLNS:地方=使用:ClientAirNavLight_WS
RequestedTheme =轻>
< Application.Resources>
<的ResourceDictionary>
< ResourceDictionary.MergedDictionaries>
<! -
定义的平台外观通用特性,手感风格
通过Visual Studio项目和项模板所需
- >
< ResourceDictionary中源=通用/ StandardStyles.xaml/>
< /ResourceDictionary.MergedDictionaries>
< / ResourceDictionary中>
< /Application.Resources>
< /用途>
在FileSavePicker的颜色是由用户的主题preferences定义的,而不是由你的应用程序。它不能被StandardStyles.xaml修改
为了你的应用程序不能尝试和模拟系统对话框(如FileSavePicker)您的应用程序不能访问这些用户preferences。
I was wondering how to change the theme of FileSavePicker on a metro app. I only found answer to this question for android and it didn't help so much. And I didn't find anything in msdn documentation. So is it possible to change the theme of a FileSavePicker? Does it exist a method or property such as fileSavePicker.RequestedTheme() ?
Just for information I defined my application's theme in App.xaml :
<Application
x:Class="ClientAirNavLight_WS.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:ClientAirNavLight_WS"
RequestedTheme="Light">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<!--
Styles that define common aspects of the platform look and feel
Required by Visual Studio project and item templates
-->
<ResourceDictionary Source="Common/StandardStyles.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
The FileSavePicker colours are defined by the user's theme preferences, not by your application. It cannot be modified by StandardStyles.xaml.
In order that your app can't try and impersonate a system dialog (like FileSavePicker) your application doesn't have access to those user preferences.
这篇关于FileSavePicker光在主题上的C#窗口地铁应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!