本文介绍了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不会调整控件大小
发布评论