Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Grid Height="530" Grid.Row="1" VerticalAlignment="Top" Margin="0,30,0,0">
- <ListBox Margin="0,0,0,0" Name="TransactionList">
- <ListBox.ItemTemplate>
- <DataTemplate>
- <Button Width="460" Height="150" Click="user_click" Name="rowButton" >
- <Button.Content>
- <StackPanel Orientation="Horizontal" Height="auto" Width="400">
- <Image Width="80" Height="80" Source="{Binding Type}"></Image>
- <StackPanel Orientation="Vertical" Height="150" Margin="20,0,0,0">
- <StackPanel Orientation="Horizontal" Height="40">
- <TextBlock Width="100" FontSize="22" Text="Name :" Height="40" ></TextBlock>
- <TextBlock Width="auto" FontSize="22" Text="{Binding Name}" Height="40" ></TextBlock>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Height="40">
- <TextBlock Width="100" FontSize="22" Text="Date :" Height="40" ></TextBlock>
- <TextBlock Width="100" FontSize="22" Text="{Binding Date}" Height="40" ></TextBlock>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Height="40">
- <TextBlock Width="100" FontSize="22" Text="Amount :" Height="40" ></TextBlock>
- <TextBlock Width="auto" FontSize="22" Text="{Binding Amount}" Height="40" ></TextBlock>
- <TextBlock Width="auto" FontSize="22" Text=" $" Height="40" ></TextBlock>
- </StackPanel>
- </StackPanel>
- </StackPanel>
- </Button.Content>
- </Button>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- </Grid>
- Button button1 = sender as Button;
- button1.Backgorund = new SolidColorBrush(Colors.Red);
Add Comment
Please, Sign In to add comment