Cannot change ListView first column text alignment

G

Guest

I try to change the text alignment of the first column of a list view, ColumnHeader.TextAlign but seems it doesn't work. The first column is always default to left alignment, which is HorizontalAlignment.Left. I even try to insert the column in design time and set the column alignment to either center or right, but still the text displayed is left-aligned. Is this a known issue or bug?

thanks,
Woon Kiat
 
H

Herfried K. Wagner [MVP]

* =?Utf-8?B?V29vbiBLaWF0?= said:
I try to change the text alignment of the first column of a list view,
ColumnHeader.TextAlign but seems it doesn't work. The first column is
always default to left alignment, which is HorizontalAlignment.Left. I
even try to insert the column in design time and set the column
alignment to either center or right, but still the text displayed is
left-aligned. Is this a known issue or bug?

This is "by design".
 
C

Claes Bergefall

Read this:
http://groups.google.se/groups?ie=U...Aye#[email protected]&lr=&hl=sv

/claes

Woon Kiat said:
I try to change the text alignment of the first column of a list view,
ColumnHeader.TextAlign but seems it doesn't work. The first column is always
default to left alignment, which is HorizontalAlignment.Left. I even try to
insert the column in design time and set the column alignment to either
center or right, but still the text displayed is left-aligned. Is this a
known issue or bug?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top