Joan Venge
Joan Venge

Reputation: 330972

How to have ListView items with Label show up at the bottom of the item not to the right in WPF?

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>

Upvotes: 0

Views: 331

Answers (1)

Grokys
Grokys

Reputation: 16526

Change:

Orientation="Horizontal"

To:

Orientation="Vertical"

I don't think any further explanation is needed!

Upvotes: 1

Related Questions