Home > DeveloperSection > Forums > How can I Align a CheckBox with its content?
Royce Roy
Royce Roy

Total Post:134

Points:938
Posted on    September-24-2013 8:34 AM

 WPF WPF 
Ratings:


 1 Reply(s)
 901  View(s)
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?



Pravesh Singh

Total Post:411

Points:2881
Posted on    September-24-2013 8:51 AM

Hi Royce,

You can do the work:

<CheckBox>

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

</CheckBox>


Don't want to miss updates? Please click the below button!

Follow MindStick