Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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>
Source by wpf.2000things.com #
 
PREVIOUS NEXT
Tagged: #Scrollable #WPF #ListBox
ADD COMMENT
Topic
Name
7+4 =