Textblock和Textwrapping ="Wrap" [英] Textblock and Textwrapping="Wrap"

查看:187
本文介绍了Textblock和Textwrapping ="Wrap"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在布局时,您如何按照预期的方式进行这项工作?

How do you make this work the way one would expect it to when it comes to layout?

我的意思是,在许多情况下,当您通常希望文本块对宽度不贪婪而对高度不贪婪时,Textblock会使父级贪婪地调整其宽度大小.我告诉文字要自动换行,所以请自动换行!在我的博客上,http://wekempf.spaces.live.com/blog/cns!D18C3EC06EA971CF!246.entry .我一直在寻找解决方案,却根本找不到解决方案,这让我发疯了!

What I mean, is that under numerous scenarios, the Textblock causes the parent to size it's width greedily, when what you usually want is for it to be non-greedy with the width and greedy with the height.  I told the text to wrap, so wrap it!  There's a good example of what I mean on my blog at http://wekempf.spaces.live.com/blog/cns!D18C3EC06EA971CF!246.entry.  I've been searching for a solution, and simply can't find one, and it's driving me insane!

推荐答案

从您的博客中查看以下示例代码:

Looking at the following sample code from your blog:

代码段


这篇关于Textblock和Textwrapping ="Wrap"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆