Tag Archives: silverlight

ListBox ItemTemplate Stretching

Here’s a simple solution to get the contents of your ListBox ItemTemplate to stretch over the full width of the ListBox. Add this to the declaration of your ListBox: <ListBox.ItemContainerStyle> <Style TargetType=”ListBoxItem”> <Setter Property=”HorizontalContentAlignment” Value=”Stretch”></Setter> </Style> </ListBox.ItemContainerStyle>

Posted in silverlight, Windows Phone 7 | Tagged , | Leave a comment

Silverlight 4 Relative Service Paths

Silverlight 4 supports relative paths for your service references, no more silly workarounds to deploy to different environments. The relative path is based on the location of the xap file, so if you xap is located on http://www.mysite.com/ClientBin/MyApp.xap and your … Continue reading

Posted in silverlight | Tagged | Leave a comment