TextBox不会调整控件大小

编程入门 行业动态 更新时间:2024-10-11 05:22:58
本文介绍了TextBox不会调整控件大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

您好。当我在TextBox控件和TextWrapping = True中写文本时 - TextBox没有调整高度。

Hi. When I write text in TextBox control and TextWrapping = True - TextBox doesn't resize height.

查看

<Grid x:Name="LayoutRoot" Background="White"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <TextBox MinHeight="27" TextWrapping="Wrap" Width="50" /> </Grid>

要复制的文字:" test te 取值" (在此字符"s"上没有""" ,文字是第二行,TextBox控件没有调整高度。错误?

Text to reproduce: "test tes" (without "")on this character "s", text is second line and TextBox control not resize height. Bug?

编辑:

链接到项目 http://www74.zippyshare/v/qlypxRlc/file.html

Link to projectwww74.zippyshare/v/qlypxRlc/file.html

推荐答案

当我将该标记放在空主页中时,它对我来说很好。

When I put that markup in an empty mainpage, it works fine for me.

我无法重现您的问题。

更多推荐

TextBox不会调整控件大小

本文发布于:2023-07-09 20:59:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1088188.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控件   大小   TextBox

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!