gpt4 book ai didi

c# - C# windows metro App 上 Light 主题中的 FileSavePicker

转载 作者:太空宇宙 更新时间:2023-11-03 16:08:35 25 4
gpt4 key购买 nike

我想知道如何在 Metro 应用程序上更改 FileSavePicker 的主题。我只为 android 找到了这个问题的答案,但并没有太大帮助。而且我在 msdn 文档中没有找到任何内容。那么是否可以更改 FileSavePicker 的主题?它是否存在诸如 fileSavePicker.RequestedTheme() 之类的方法或属性?

仅供引用,我在 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>

最佳答案

FileSavePicker 颜色由用户的主题首选项定义,而不是由您的应用程序定义。它不能被 StandardStyles.xaml 修改。

为了让您的应用无法尝试模拟系统对话框(如 FileSavePicker),您的应用无权访问这些用户首选项。

关于c# - C# windows metro App 上 Light 主题中的 FileSavePicker,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18358859/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com