<Window x:Class="WpfApplication4.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Title="TeeChart Editor" Height="420" Width="525" WindowStartupLocation="CenterOwner" >
    <DockPanel>
        <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal">
            <Button Content="Close" Margin="25,5,10,5" Padding="10,2" Click="CloseWindow_Click" />
        </StackPanel>
        <TabControl Name="tabControl1" SelectionChanged="tabControl1_SelectedIndexChanged">
            <TabItem Header="Chart">
                <TabControl Name="tabControl2">
                    <TabItem Header="Series" Name="tabSeries">
                        <DockPanel>
                            <StackPanel DockPanel.Dock="Right" Orientation="Vertical">
                                <TextBlock TextAlignment="Center" Margin="0,10,0,0">Move Series</TextBlock>
                                <StackPanel Orientation="Horizontal" Margin="5,3,5,8">
                                    <Button Name="bSeriesUp" Content="Up" Margin="3" Click="bSeriesMove_Click" Tag="up" />
                                    <Button Name="bSeriesDown" Content="Down" Margin="3" Click="bSeriesMove_Click" Tag="down" />
                                </StackPanel>
                                <Button Content="Add . . ." Margin="4" Name="buttonAddSeries" Click="buttonAddSeries_Click" />
                                <Button Content="Delete . . ." Margin="4" Name="buttonDeleteSeries" Click="buttonDeleteSeries_Click" />
                                <Button Content="Title . . ." Margin="4" Name="buttonTitleSeries" Click="buttonTitleSeries_Click" />
                                <Button Content="Clone" Margin="4" Name="buttonCloneSeries" Click="buttonCloneSeries_Click" />
                                <Button Content="Change . . ." Margin="4" Name="buttonChangeSeries" Click="buttonChangeSeries_Click" />
                            </StackPanel>
                            <StackPanel DockPanel.Dock="Top" Orientation="Horizontal">
                                <Button Name="BAddGroup" Content=" + " Margin="2" />
                                <Button Name="BDeleteGroup" Content=" - " Margin="2" />
                                <Button Name="BRenameGroup" Content="Rename" Margin="2" />
                            </StackPanel>
                            <telerik:RadTreeView DockPanel.Dock="Left" Name="LBGroups" ItemsOptionListType="CheckList" IsOptionElementsEnabled="True" IsTriStateMode="True"
                                    SelectionMode="Single">
                                <telerik:RadTreeViewItem Header="Item 1" />
                            </telerik:RadTreeView>
                            <!--<tChartWpf:ChartListBox x:Name="chartListBox1" />-->
                        </DockPanel>
                    </TabItem>
                    <TabItem Header="Panel" Name="tabPanel" />
                    <TabItem Header="Axes" Name="tabAxes" />
                    <TabItem Header="General" Name="tabGeneral" />
                    <TabItem Header="Titles" Name="tabTitles" />
                    <TabItem Header="Walls" Name="tabWalls">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="*" />
                            </Grid.RowDefinitions>
                            <CheckBox Content="Visible Walls" Grid.Row="0" Margin="10" Name="checkBox2" />
                            <TabControl Grid.Row="1" Name="tabControl3">
                                <TabItem Header="Left" Name="tabPage3" />
                                <TabItem Header="Right" Name="tabPage9" />
                                <TabItem Header="Back" Name="tabPage10" />
                                <TabItem Header="Bottom" Name="tabPage11" />
                            </TabControl>
                        </Grid>
                    </TabItem>
                    <TabItem Header="Paging" Name="tabPaging" />
                    <TabItem Header="Legend" Name="tabLegend" />
                    <TabItem Header="3D" Name="tabAspect" />
                </TabControl>
            </TabItem>
            <TabItem Header="Series" Name="tabPageSeries">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <Grid Grid.Row="0">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="10*" />
                            <ColumnDefinition Width="1*" />
                        </Grid.ColumnDefinitions>
                        <StackPanel Grid.Column="0" Orientation="Horizontal">
                            <ComboBox Name="CBSeries" Margin="10,5,5,5" SelectionChanged="CBSeries_SelectionChanged" />
                            <Image Name="pictureBox2" Margin="3" Width="24" Height="24" />
                            <TextBlock Name="label4" Margin="3" />
                        </StackPanel>
                        <telerik:RadColorPicker Grid.Column="1" Height="24" Width="24" SelectedColor="Red" NoColorVisibility="Collapsed" Name="label7" />
                    </Grid>

                </Grid>
            </TabItem>
            <TabItem Header="Data" Name="tabData">
                <telerik:RadGridView Name="dataGrid1" ShowInsertRow="True" />
            </TabItem>
            <TabItem Header="Print" Name="tabPrint" />
            <TabItem Header="Export" Name="tabExport" />
            <TabItem Header="Tools" Name="tabTools" />
            <TabItem Header="Animations" Visibility="Hidden" Name="tabAnimations" />
            <TabItem Header="Themes" Visibility="Hidden" Name="tabThemes" />
        </TabControl>

    </DockPanel>
</Window>
