Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
Center text alignment with background color filling entire cell.
posted

Hi Team,

I need to align my xamtextgrid to center and want my background color to completely fill the cell.

By default text is left aligned and entire cell is filled with back ground color.

If i make text alignment to center using 

<Setter Property="HorizontalAlignment" Value="Center" />
<Setter Property="HorizontalContentAlignment" Value="Center" />

text is alligned to center but background color is filled around that text only leaving remainng cell in white color. Which does not looks good.=

i want it to be centerd with back ground color covering entire cell.

If i use TextAlignment property with center value nothing happens.

I am really fed up of this. this is very simple requirement.

Please let me know how to handle this scenario as soon as possible.