Advertisement
onzulin

ScrollViewer y ListBox

Dec 21st, 2012
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.99 KB | None | 0 0
  1. <ScrollViewer Margin="0,3,1,0" Grid.Row="1" Grid.RowSpan="3">
  2. <ListBox x:Name="ListBoxTransactionEarn" HorizontalAlignment="Left" Height="130" VerticalAlignment="Top" Width="522" SelectionChanged="ListBoxTransaction_SelectionChanged" BorderBrush="#FF2070FB" ScrollViewer.HorizontalScrollBarVisibility="Auto" >
  3.    <ListBox.ItemTemplate>
  4.       <DataTemplate>
  5.         <StackPanel x:Name="StackPanelListBox" Orientation="Horizontal"                     Width="Auto" Height="Auto">
  6.                     <TextBlock x:Name="date" Text="{Binding date}" Width="1" Foreground="#FF007021"/>
  7.                     <TextBlock x:Name="nombre" Text="{Binding nombre}" Width="170"/>
  8.                     <TextBlock x:Name="amount" Text="{Binding amount}" Width="110"/>
  9.                     <TextBlock x:Name="descripcion" Text="{Binding tipo}" Width="200"/>
  10.                             </StackPanel>
  11.                         </DataTemplate>
  12.                     </ListBox.ItemTemplate>
  13.                 </ListBox>
  14.             </ScrollViewer>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement