[UWP] TextBox未在Windows 10手机中剪辑 [英] [UWP]TextBox is not clipped in Windows 10 phone
问题描述
在UWP中,我已经加载了TextBox,如下所示。
In UWP, I have loaded TextBox like below.
<TextBox
Name="textBox"
Margin="0,0,0,0"
Background="Pink"
Text="TextBox" />
如果我在设备中运行此功能,TextBox会与移动标头重叠。如果我也应用translate transform,它看起来像是重叠的。请参阅附图。
If I run this in device, TextBox is overlapped with mobile header. If i apply translate transform also, it looks like overlapped. Refer the attached images.
带有上边距0的TextBox
TextBox with Top margin 0
带有上边距-10的文本框
TextBox with Top margin -10
< img alt =""src ="https://social.msdn.microsoft.com/Forums/getfile/1122346">
I需要显示带剪辑的TextBox(应用上边距)。
I need to show TextBox(applied top margin) with clipping.
任何人都可以建议我如何实现这一目标吗?
Can anyone suggest me how to achieve this?
提前致谢。
推荐答案
您好,
请阅读粘贴帖子,特别是 发布指南:主题行
标签
Please read the sticky posts, especially the Guide to posting: subject line tags
您只需在应用开始时进入全屏,然后文本框不会从顶部剪切。
You can just enter to full screen on app start and then textbox doesn't clipped from top.
ApplicationView.PreferredLaunchWindowingMode = ApplicationViewWindowingMode.FullScreen;
你应该在
Window.Current.Activate();
app类中的方法。
这篇关于[UWP] TextBox未在Windows 10手机中剪辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!