UWP应用程序如何使背景完全变黑

时间:2016-07-29 19:41:42

标签: c# xaml search web uwp

我将页面背景设置为黑色,什么都不做没有问题,但是当我在键盘打开时单击TextBox或者当我将手机布局更改为水平到垂直时,我看到边缘是白色的,我该如何制作他们也是黑人?

1 个答案:

答案 0 :(得分:1)

您是否正在更改页面或网格背景。我假设你只是改变网格背景而不是页面。

以下示例正在更改页面和网格。

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

    <Grid Background="Black">

    </Grid>
</Page>