1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
| <Window x:Class="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:WpfExpanderTest2"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="900" WindowStartupLocation="CenterScreen" MinWidth="900" MinHeight="450">
<TabControl x:Name="tabControl">
<TabItem Header="Tool Import parts">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" MinHeight="65"/>
<RowDefinition/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="177*"/>
<ColumnDefinition Width="180*"/>
<ColumnDefinition Width="200*"/>
<ColumnDefinition Width="180*"/>
<ColumnDefinition Width="149*"/>
</Grid.ColumnDefinitions>
<GridSplitter x:Name="GridSplitter0" Grid.ColumnSpan="5" BorderThickness="1" BorderBrush="DarkSlateGray"
VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0,30,0,29">
<GridSplitter.Background>
<LinearGradientBrush EndPoint="0.5,0" StartPoint="0.5,1">
<GradientStop Color="#FF808385" Offset="0"/>
<GradientStop Color="#FFECF1F7" Offset="1"/>
</LinearGradientBrush>
</GridSplitter.Background>
</GridSplitter>
<Button x:Name="btn_Import" Content="Import" HorizontalAlignment="Left" Margin="10,3,0,0" VerticalAlignment="Top" Width="75" Height="20"/>
<Button x:Name="btn_Export" Content="Export" HorizontalAlignment="Left" Margin="93,3,0,0" VerticalAlignment="Top" Width="75" Height="20"/>
<Button x:Name="btn_Addrows" Content="Add Rows" HorizontalAlignment="Left" Margin="8,3,0,0" VerticalAlignment="Top" Width="75" Background="LightGreen" Grid.Column="1" Height="20" />
<Button x:Name="btn_Deleterows" Content="Delete Rows" HorizontalAlignment="Left" Margin="88,3,0,0" VerticalAlignment="Top" Width="75" Grid.Column="1" Background="LightPink" Height="20"/>
<ComboBox x:Name="ComboBox1" Height="22" Width="120" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="8,3,0,0" Grid.Column="2" SelectedIndex="0">
<ListBoxItem Content="Number Add Rows"/>
<ListBoxItem Content="1"/>
<ListBoxItem Content="5"/>
<ListBoxItem Content="10"/>
<ListBoxItem Content="25"/>
<ListBoxItem Content="50"/>
<ListBoxItem Content="100"/>
<ListBoxItem Content="250"/>
<ListBoxItem Content="500"/>
</ComboBox>
<Button x:Name="btn_Import_Project" Content="Import Parts Project" Grid.Column="4" Height="20" Width="120" Margin="0,3,10,0" HorizontalAlignment="Right" VerticalAlignment="Top" />
<Button x:Name="btn_close" Content="Close" Grid.Row="4" Grid.Column="4" Height="20" Width="80" Margin="0,0,10,1" HorizontalAlignment="Right" VerticalAlignment="Bottom" />
<DataGrid x:Name="datagrid1" Grid.ColumnSpan="5" VerticalAlignment="Stretch" Margin="0,40,0,0" Grid.RowSpan="2"/>
<Expander x:Name="Expander1" Grid.Row="4" Header="Setting" IsExpanded="False" BorderBrush="Black">
<StackPanel>
<CheckBox x:Name="Ckb0" Content="DT (Full)" Background="LightGray"/>
<Separator/>
<CheckBox x:Name="Ckb1" Content="Part Number 1" Background="LightGreen"/>
<CheckBox x:Name="Ckb2" Content="Part Variant 1" Background="LightGreen"/>
<Separator/>
<CheckBox x:Name="Ckb3" Content="Part Number 2" Background="LightGreen"/>
<CheckBox x:Name="Ckb4" Content="Part Variant 2" Background="LightGreen"/>
<CheckBox x:Name="Ckb5" Content="Part Number 3" Background="LightGreen"/>
<CheckBox x:Name="Ckb6" Content="Part Variant 3" Background="LightGreen"/>
<CheckBox x:Name="Ckb7" Content="Part Number 4" Background="LightGreen"/>
<CheckBox x:Name="Ckb8" Content="Part Variant 4" Background="LightGreen"/>
<CheckBox x:Name="Ckb9" Content="Part Number 5" Background="LightGreen"/>
<CheckBox x:Name="Ckb10" Content="Part Variant 5" Background="LightGreen"/>
<CheckBox x:Name="checkBox12" Content="Engraving (function)" Background="LightPink"/>
<CheckBox x:Name="checkBox13" Content="Output group (for loop)" Background="LightCoral"/>
<Separator/>
<CheckBox x:Name="checkBox14" Content="Designation (Cable)" Background="Aqua"/>
<CheckBox x:Name="checkBox15" Content="Filter cable (Remark)" Background="Aqua"/>
<CheckBox x:Name="checkBox16" Content="Lenght (Cable)" Background="Bisque"/>
</StackPanel>
</Expander>
<CheckBox x:Name="ckbreset" Content="Reset setting" Background="Red" Grid.Column="1" Grid.Row="4" Margin="3,4,0,0" Grid.ColumnSpan="3"></CheckBox>
<GridSplitter x:Name="GridSplitter1" Grid.Row="2" Grid.ColumnSpan="5" Height="6" BorderThickness="1" BorderBrush="DarkSlateGray"
VerticalAlignment="Center" HorizontalAlignment="Stretch" Grid.RowSpan="2">
<GridSplitter.Background>
<LinearGradientBrush EndPoint="0.5,0" StartPoint="0.5,1">
<GradientStop Color="#FF808385" Offset="0"/>
<GradientStop Color="#FFECF1F7" Offset="1"/>
</LinearGradientBrush>
</GridSplitter.Background>
</GridSplitter>
</Grid>
</TabItem>
<TabItem Header="Tool Connection">
<Grid Background="#FFE5E5E5"/>
</TabItem>
</TabControl>
</Window> |
Partager