RE: Ragged ListBox item widths

2010-04-20 Thread Greg Keogh


   

  

 

  

   



 

THIS WORKS!

 

I was afraid that the Border around the Grid would ruin the stretching, but
it works anyway. Thanks for that. I'm happy to remove the event code I
posted yesterday and use the Setter instead. I'm always happy to remove
code.

 

Because you asked, below is my ListBox definition.

 

Greg

 

 



  



  



  

  



  



  



  

  





  

  



  

  



  

  

  







  



  



  



 

___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


RE: Ragged ListBox item widths

2010-04-19 Thread Peter Blois
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


Re: Ragged ListBox item widths

2010-04-19 Thread Miguel Madero
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 (blog)
m...@miguelmadero.com
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight