簡體   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