tag:blogger.com,1999:blog-25457732.post35510405779647220..comments2014-12-14T01:51:06.803-05:00Comments on .NET Dreams: WPF: Adventures in FormattingUnknownnoreply@blogger.comBlogger2125tag:blogger.com,1999:blog-25457732.post-51696329448351151382011-09-23T09:04:19.470-05:002011-09-23T09:04:19.470-05:00You need to use a style to set the ListViewItem Ho...You need to use a style to set the ListViewItem HorizontalContentAlignment to Sretch, then in your GridViewColumn.CellTemplate wrap the textblock in a stackpanel. Set the stack panels Orientation to vertical. Set the TextBlock TextWrapping to Wrap. Finally turn off the horizontal scroll bar ScrollViewer.HorizontalScrollBarVisibility=Disabled You can leave the scroll bar on but the text will then only wrap when the user resizes the column.Mike Junkinhttps://www.blogger.com/profile/08638108328495295802noreply@blogger.comtag:blogger.com,1999:blog-25457732.post-18741867166952806682008-10-22T02:23:00.000-05:002008-10-22T02:23:00.000-05:00The example you found seems to be mostly correct, ...The example you found seems to be mostly correct, but I think you just should bind the data directly to the textblock, and skip the DisplayMemberBinding.<BR/><BR/>(note: i tried to paste the code here, but this stupid thing thinks it's HTML tags.)<BR/><BR/>Also, for this to work, you need to set a column width--otherwise WPF will size your column as wide as it can. Your user can change the size of the column and it will re-wrap.Benhttps://www.blogger.com/profile/14951130573503384895noreply@blogger.com