How can I Align a CheckBox with its content?

Total Post:149

Points:1043
WPF 
WPF
 1474  View(s)
Ratings:
Rate this:

The XAML looks like this:

<CheckBox Content="Poorly aligned CheckBox"
Margin="9"/>

The CheckBox is inside a Grid cell. Is there a simple way to make the content and check portions of a XAML CheckBox align vertically?

  1. Post:412

    Points:2888
    Re: How can I align a CheckBox with its content?

    Hi Royce,

    You can do the work:

    <CheckBox>
        <TextBlock Text="Poorly aligned CheckBox" Margin="0,-2,0,0"/>
    </CheckBox>

      Modified On Mar-31-2018 01:54:08 AM

Answer