Advertise with us

How can I Align a CheckBox with its content?

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?

Last updated:9/24/2013 8:51:21 AM

1 Answers

Pravesh Singh
Pravesh Singh

Hi Royce,

You can do the work:

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

Answer