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

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -