I usually do this by setting the HorizontalContentAlignment on the ListBoxItem
style, changing it from Left to Stretch.
<Setter Property="HorizontalContentAlignment"
Value="Stretch"/>
Using this approach will allow long lines to continue to scroll horizontally.
From: ozsilverlight-boun...@ozsilverlight.com
[mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Miguel Madero
Sent: Monday, April 19, 2010 4:12 PM
To: ozSilverlight
Subject: Re: Ragged ListBox item widths
I found this yesterday:
http://10rem.net/blog/2010/04/18/silverlight-and-wpf-tip-fitting-items-in-a-listbox
--
Miguel A. Madero Reyes
www.miguelmadero.com<http://www.miguelmadero.com> (blog)
m...@miguelmadero.com<mailto:m...@miguelmadero.com>
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight