我将页面背景设置为黑色,并且什么都不做没有问题,但是当键盘打开时单击TextBox
时,或者当我将电话布局从水平更改为垂直时,当我在边缘看到白色时,如何也将它们设置为黑色?
Are you changing the page or the grid background. I would assume you are only changing the grid background not the page.
The below example is changing both the page and the grid.
<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>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.