繁体   English   中英

C#Windows Metro应用程序上的Light主题中的FileSavePicker

[英]FileSavePicker in Light theme on C# windows metro App

我想知道如何在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),您的应用程序无权访问这些用户首选项。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM