common/CordoPlot/MainWindow.xaml

112 lines
4.7 KiB
Plaintext
Raw Permalink Normal View History

2026-04-23 15:50:07 +00:00
<Window x:Class="CordoPlot.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:ScottPlot="clr-namespace:ScottPlot.WPF;assembly=ScottPlot.WPF"
xmlns:local="clr-namespace:CordoPlot"
mc:Ignorable="d"
Title="MainWindow" Height="1000" Width="1000">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="71*" />
<ColumnDefinition Width="572*"/>
<ColumnDefinition Width="163*"/>
<ColumnDefinition Width="171*"/>
<ColumnDefinition Width="23*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="21*"/>
<RowDefinition Height="200*"/>
<RowDefinition Height="100*"/>
<RowDefinition Height="21*"/>
</Grid.RowDefinitions>
<Label x:Name="FileName" >
</Label>
<Button Click="Button_Click" Grid.Row="0" Grid.Column="2" Margin="10,10,10,10" >File</Button>
<ScottPlot:WpfPlot x:Name="WpfPlot2" Grid.Row="2" Margin="0,0,0,60" Grid.RowSpan="2" Grid.Column="1" />
<Button Click="Button_Click_1" Grid.Row="3" Grid.Column="1" Margin="10,10,10,10" >CopyWindow</Button>
<ScottPlot:WpfPlot x:Name="WpfPlot3" Grid.Row="2" Grid.Column="2" Grid.ColumnSpan="2" Margin="0,0,6,60" Grid.RowSpan="2" />
<Grid Grid.Column="2" Grid.ColumnSpan="2" Margin="0,60,6,288" Grid.RowSpan="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="10*" />
<ColumnDefinition Width="40*"/>
<ColumnDefinition Width="40*"/>
<ColumnDefinition Width="10*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="10*"/>
<RowDefinition Height="400*"/>
<RowDefinition Height="10*"/>
<RowDefinition Height="400*"/>
<RowDefinition Height="10*"/>
</Grid.RowDefinitions>
<DataGrid
x:Name="dataGridInfo"
Grid.Row="1"
Grid.Column="1" Grid.ColumnSpan="2" ItemsSource="{Binding}"/>
<DataGrid
x:Name="dataGridTestPoints"
Grid.Row="3"
Grid.Column="1" Grid.ColumnSpan="2" SelectedCellsChanged="DataGrid_SelectedCellsChanged" />
</Grid>
<TabControl Margin="0,60,0,288" Grid.RowSpan="3" Grid.Column="1">
<TabItem Header="ChartDisplay">
<Grid Background="#FFE5E5E5">
<ScottPlot:WpfPlot x:Name="WpfPlot1" />
</Grid>
</TabItem>
<TabItem Header="DataDisplay">
<Grid Background="#FFE5E5E5">
<DataGrid x:Name="dataGridDispl" ItemsSource="{Binding}" SelectionUnit="Cell" IsReadOnly="True" SelectedCellsChanged="dataGridchl1_SelectedCellsChanged" CurrentCellChanged="dataGridchl1_CurrentCellChanged" />
</Grid>
</TabItem>
<TabItem Header="DataChnl1">
<Grid Background="#FFE5E5E5">
<DataGrid x:Name="dataGridchl1" ItemsSource="{Binding}" SelectionUnit="Cell" IsReadOnly="True" SelectedCellsChanged="dataGridchl1_SelectedCellsChanged" CurrentCellChanged="dataGridchl1_CurrentCellChanged" />
</Grid>
</TabItem>
<TabItem Header="DataChnl2">
<Grid Background="#FFE5E5E5">
<DataGrid x:Name="dataGridchl2" ItemsSource="{Binding}" SelectionUnit="Cell" IsReadOnly="True" SelectedCellsChanged="dataGridchl1_SelectedCellsChanged" CurrentCellChanged="dataGridchl1_CurrentCellChanged" />
</Grid>
</TabItem>
<TabItem Header="DataChnl3">
<Grid Background="#FFE5E5E5">
<DataGrid x:Name="dataGridchl3" ItemsSource="{Binding}" SelectionUnit="Cell" IsReadOnly="True" SelectedCellsChanged="dataGridchl1_SelectedCellsChanged" CurrentCellChanged="dataGridchl1_CurrentCellChanged" />
</Grid>
</TabItem>
</TabControl>
<!--DataContext="{Binding testBenchresults}">
<TextBlock Text="testpoint"
Grid.Row="0"
Margin="9,-7,0,0" ></TextBlock>
<TextBlock Text="{Binding TestRunNr}"
Grid.Row="1"
Margin="9,-7,0,0" />-->
</Grid>
</Window>