应用程序的黑暗主题

时间:2016-01-28 11:45:26

标签: windows visual-studio xaml

我为Windows手机编写应用程序。

我想设置app的黑暗主题。

我在这个窗口上设置了它,但是当我在设备上部署这个应用程序时,我的主题很轻。

Theme

我的xaml代码:

<Page
x:Class="Murakami.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Murakami"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">

<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
    <Button x:Name="button" Content="" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="48" Height="46">
        <Button.Background>
            <ImageBrush Stretch="Fill" ImageSource="Images/menu.png"/>
        </Button.Background>
    </Button>
    <Button x:Name="button1" Content="" HorizontalAlignment="Left" Margin="302,10,0,0" VerticalAlignment="Top" Width="48" Height="46" >
        <Button.Background>
            <ImageBrush Stretch="Fill" ImageSource="Images/cart.png"/>
        </Button.Background>
    </Button>
    <Button x:Name="button2" Content="" HorizontalAlignment="Left" Margin="126,5,0,0" VerticalAlignment="Top" Height="63" Width="115">
        <Button.Background>
            <ImageBrush Stretch="Fill" ImageSource="Images/logo_murakami.png"/>
        </Button.Background>
    </Button>

</Grid>

我如何解决这个问题?

0 个答案:

没有答案