如何使用紧凑的框架创建多行RadioButton [英] How, to, create, multiline RadioButton with compact framework

查看:80
本文介绍了如何使用紧凑的框架创建多行RadioButton的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何测量文本的大小,但是当我增加RadioButton的大小时,将文本显示在一行中.是否可以创建多行RadioButton?
这是一个紧凑的框架3.5.

I know how to measure the size of the text, but when I increase the Size of RadioButton show me the text in one line. Is it possible to create multi-line RadioButton?
It''s a compact framework 3.5.

推荐答案

您可以使用以下方式:

You may use this ways:

<br />
<pre lang="xml"><RadioButton Width="80"><br />
    <RadioButton.Content><br />
        <TextBlock><br />
        <Run>First line</Run><br />
        <LineBreak></LineBreak><br />
        <Run>Second line</Run><br />
        </TextBlock><br />
    </RadioButton.Content><br />
</RadioButton><br />
<RadioButton Width="80"><br />
    <RadioButton.Content><br />
        <TextBlock TextWrapping="WrapWithOverflow">Very very long text</TextBlock><br />
    </RadioButton.Content><br />
</RadioButton></pre><br />


你好亲爱的
如果要对单选按钮的文本进行MultiLine文本,则意味着如果要在某些行而不是单行中显示单选按钮的文本,则可以轻松地将Radiobutton的AutoSize属性设置为false,然后增加RadioButton的高度并减小其宽度
Hello Dear
if you want to MultiLine text of a Radiobutton , it means if you want to show text of a RadioButton in some lines instead of one line , It is easy set AutoSize property of Radiobutton to false then increase height of RadioButton and decrease width of it


这篇关于如何使用紧凑的框架创建多行RadioButton的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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