Guest User

Untitled

a guest
Jan 22nd, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. <Grid Height="530" Grid.Row="1" VerticalAlignment="Top" Margin="0,30,0,0">
  2. <ListBox Margin="0,0,0,0" Name="TransactionList">
  3. <ListBox.ItemTemplate>
  4. <DataTemplate>
  5. <Button Width="460" Height="150" Click="user_click" Name="rowButton" >
  6. <Button.Content>
  7. <StackPanel Orientation="Horizontal" Height="auto" Width="400">
  8. <Image Width="80" Height="80" Source="{Binding Type}"></Image>
  9. <StackPanel Orientation="Vertical" Height="150" Margin="20,0,0,0">
  10. <StackPanel Orientation="Horizontal" Height="40">
  11. <TextBlock Width="100" FontSize="22" Text="Name :" Height="40" ></TextBlock>
  12. <TextBlock Width="auto" FontSize="22" Text="{Binding Name}" Height="40" ></TextBlock>
  13. </StackPanel>
  14. <StackPanel Orientation="Horizontal" Height="40">
  15. <TextBlock Width="100" FontSize="22" Text="Date :" Height="40" ></TextBlock>
  16. <TextBlock Width="100" FontSize="22" Text="{Binding Date}" Height="40" ></TextBlock>
  17. </StackPanel>
  18. <StackPanel Orientation="Horizontal" Height="40">
  19. <TextBlock Width="100" FontSize="22" Text="Amount :" Height="40" ></TextBlock>
  20. <TextBlock Width="auto" FontSize="22" Text="{Binding Amount}" Height="40" ></TextBlock>
  21. <TextBlock Width="auto" FontSize="22" Text=" $" Height="40" ></TextBlock>
  22. </StackPanel>
  23. </StackPanel>
  24. </StackPanel>
  25. </Button.Content>
  26. </Button>
  27. </DataTemplate>
  28. </ListBox.ItemTemplate>
  29. </ListBox>
  30. </Grid>
  31.  
  32. Button button1 = sender as Button;
  33. button1.Backgorund = new SolidColorBrush(Colors.Red);
Add Comment
Please, Sign In to add comment