How to have ListView items with Label show up at the bottom of the item not to the right in WPF?
Posted
by Joan Venge
on Stack Overflow
See other posts from Stack Overflow
or by Joan Venge
Published on 2010-04-04T02:14:15Z
Indexed on
2010/04/04
2:23 UTC
Read the original article
Hit count: 439
I am using a WrapPanel with an Image and Label, but the Label shows up to the right of the item. How can I make it show up at the bottom of the Image/Item?
<Window.Resources>
<DataTemplate x:Key="ItemTemplate">
<WrapPanel Orientation="Horizontal">
<Image Width="50" Height="50" Stretch="Fill" Source="{Binding Cover}"/>
<Label Content="{Binding Title}" />
</WrapPanel>
</DataTemplate>
</Window.Resources>
© Stack Overflow or respective owner