<Window x:Class="test2.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:test2"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Grid>
        <ListBox x:Name="objTable" d:ItemsSource="{d:SampleData ItemCount=5}" Margin="24,53,497,113" SelectionChanged="objTable_SelectionChanged"/>
        <TextBox x:Name="box1" HorizontalAlignment="Left" Margin="400,86,0,0" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Width="170" Height="24"/>
        <TextBox x:Name="box2" HorizontalAlignment="Left" Margin="451,146,0,0" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Width="120"/>
        <Button x:Name="addbtn" Content="add" HorizontalAlignment="Left" Margin="400,187,0,0" VerticalAlignment="Top" Click="addbtn_Click"/>
        <Button x:Name="removebtn" Content="del" HorizontalAlignment="Left" Margin="473,197,0,0" VerticalAlignment="Top" Click="removebtn_Click"/>
        <Button x:Name="editbtn" Content="edit" HorizontalAlignment="Left" Margin="555,0,0,0" VerticalAlignment="Center" Click="editbtn_Click"/>

    </Grid>
</Window>
