我在我的项目中放置了一个ContentDialog,用于在Windows 10上使用登录弹出窗口。
当我在移动设备上运行此项目时,ContentDialog没有全屏显示,并且在此元素周围有最小的填充。键盘可见(例如在焦点元素文本框上),键盘和内容对话框之间存在边距。
有没有解决方案可以使其全屏显示?我将属性“FullSizeDesired”设置为true,但问题仍然存在?
有人帮忙去除这些:- 填充,- 全屏
我的代码如下:
<ContentDialog
x:Class="ExampleApp.SignInContentDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:ExampleApp"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Title="SIGN IN">
<Grid x:Name="GridMobile" VerticalAlignment="Center" HorizontalAlignment="Center">
<Button x:Name="MakeOff"
Height="32" BorderThickness="1"
HorizontalAlignment="Center"
Foreground="Red" Background="Black"
Style="{StaticResource ButtonStyle}"
Margin="0">
<HyperlinkButton x:Name="btnRegister"
Height="32" BorderThickness="1"
HorizontalAlignment="Center"
Foreground="Red" Background="Black"
Margin="0"
NavigateUri="www.google.pt"
Style="{StaticResource HyperLinkButtonStyleMobile}"
Content="Register">
<HyperlinkButton.ContentTemplate>
<DataTemplate>
<TextBlock Text="{Binding}" />
</DataTemplate>
</HyperlinkButton.ContentTemplate>
</HyperlinkButton>
</Grid>
页面底部的空白边距是为“PrimaryButton”和“SecondaryButton”保留的,但我需要更多的按钮,这个空白边距对我来说不合适。我想要移除它。
谢谢。
ContentDialog
的 XAML 吗? - Justin XL