【发布时间】:2015-12-12 20:03:32
【问题描述】:
我在我的项目中放置了一个 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”保留的 但我需要更多按钮,而且这个边距/空间不适合我。我想删除它。
谢谢。
【问题讨论】:
-
你能展示你的自定义
ContentDialogxaml吗? -
抱歉,我不允许在这里发布图片。你可以给你的skypei id或其他的来与你沟通吗?我现在编辑这篇文章!谢谢
-
好吧,你为什么不能在这里发布你的代码?
-
我现在发布!请检查这个!
标签: c# xaml login popup windows-10-mobile