Answers for "Scrollable WPF ListBox"

C#
0

Scrollable WPF ListBox

<ListBox ItemsSource="{Binding ActorList}" Width="300"
         ScrollViewer.CanContentScroll="False">
    <ListBox.ItemTemplate>
        <DataTemplate>
            <StackPanel Orientation="Horizontal">
                <Image Source="{Binding Image}" Height="100"/>
                <StackPanel Margin="10,0">
                    <TextBlock Text="{Binding FullName}" FontWeight="Bold" />
                    <TextBlock Text="{Binding Dates}"/>
                    <TextBlock Text="{Binding KnownFor}" FontStyle="Italic"/>
                </StackPanel>
            </StackPanel>
        </DataTemplate>
    </ListBox.ItemTemplate>
</ListBox>
Posted by: Guest on March-05-2022

C# Answers by Framework

Browse Popular Code Answers by Language