Mega Code Archive

 
Categories / C# / WPF
 

ListBoxItem Content

<Window x:Class="SimpleStyles.Window1"   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   Title="SimpleStyles"   Background="#F8F8F8">   <ScrollViewer>     <WrapPanel>       <HeaderedItemsControl Header="ListBox">         <StackPanel Orientation="Horizontal">           <ListBox Margin="8" SelectionMode="Extended"  Height="100">             <ListBoxItem Content="First Normal Item" />             <ListBoxItem Content="Second Normal Item" />             <ListBoxItem Content="Third Normal Item" />             <ListBoxItem Content="Fourth Normal Item" />             <ListBoxItem Content="Fifth Normal Item" />             <ListBoxItem Content="Sixth Normal Item" />             <ListBoxItem Content="Seventh Normal Item" />             <ListBoxItem Content="Eighth Normal Item" />           </ListBox>           <ListBox Margin="8" SelectionMode="Extended" ScrollViewer.VerticalScrollBarVisibility="Visible" Height="100">             <ListBoxItem Content="First Normal Item" />             <ListBoxItem Content="Second Normal Item" />             <ListBoxItem Content="Third Normal Item" />             <ListBoxItem Content="Fourth Normal Item" />             <ListBoxItem Content="Fifth Normal Item" />             <ListBoxItem Content="Sixth Normal Item" />             <ListBoxItem Content="Seventh Normal Item" />             <ListBoxItem Content="Eighth Normal Item" />           </ListBox>         </StackPanel>       </HeaderedItemsControl>         </WrapPanel>   </ScrollViewer> </Window>