How can I Align a CheckBox with its content?

Total Post:149

Points:1043

WPF 
WPF
 1615  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. 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

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.