xaml - Can I wrap the Content/text value of a RadioButton in WPF? -


i have xaml:

<stackpanel orientation="horizontal">     <textblock x:name="keylwp" textwrapping="wrap" maxwidth="120">a letter or word or phrase     </textblock>     <stackpanel>         <radiobutton x:name="rdbtncandidateval1" content="two wrongs don't make wright brothers grimm thingamabob dylan thomas jefferson airplane">         </radiobutton> 

...where, long string assigned radiobutton's content, falls off edge of earth. how can wrap, if necessary, can textwrapping , maxwidth properties of textblock? or must pair textblock each radiobutton, eschewing radiobutton's content/text property?

you have options, go make in radio button style template applies of them, or @ instance level quick;

<radiobutton>    <radiobutton.content>       <textblock text="wrap content pretty pretty please" textwrapping="wrap"/>    </radiobutton.content> </radiobutton> 

or there's other options also, let me know if there's specific scenario , we'll ya sorted.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -