Files
Emmanuele Sassi 6e4645875b - Primo commit
- Tpa funzionante
2021-09-29 11:35:42 +02:00

76 lines
3.4 KiB
XML

<EgtWPFLib5:EgtCustomWindow x:Class="MainWindowV"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
xmlns:EgtCOMMTest="clr-namespace:EgtCOMMTest"
DataContext="{StaticResource MainWindowVM}"
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
Title="{Binding Title}" Icon="/Resources/EgtCOMMTest.ico"
MinHeight="700" MinWidth="800"
AboutBoxCommand="{Binding AboutBox_Command}"
CloseCommand="{Binding CloseApplication_Command,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}">
<StackPanel>
<UniformGrid Rows="1">
<RadioButton Content="Tpa"
IsChecked="{Binding Tpa_IsChecked}"
Style="{StaticResource MainMenu_ToggleButton}"/>
<RadioButton Content="Num"
IsChecked="{Binding Num_Flexium_IsChecked}"
Style="{StaticResource MainMenu_ToggleButton}"/>
</UniformGrid>
<GroupBox Header="MachCommandMessagePanel">
<EgtCOMMTest:MachCommandMessagePanelV DataContext="{StaticResource MachCommandMessagePanelVM}"/>
</GroupBox>
<!--<Button Content="CANCELLA ALLARMI"
Command="{Binding DeleteAlarms_Command}"/>-->
<GroupBox Header="CNC files manager">
<StackPanel>
<TextBlock Text="{Binding ProgramPath}"/>
<Button Content="..."
Command="{Binding SearchFilePath_Command}"/>
<TextBox Text="{Binding ProgramIndex}"/>
<Button Content="Add"
Command="{Binding AddProgram_Command}"/>
<Button Content="Remove"
Command="{Binding RemoveProgram_Command}"/>
</StackPanel>
</GroupBox>
<GroupBox Header="Read/Write variables">
<EgtCOMMTest:VariablesListV DataContext="{StaticResource VariablesListVM}"/>
<!--<StackPanel>
<TextBlock Text="Name:"/>
<TextBox Text="{Binding VarName}"/>
<TextBlock Text="Value:"/>
<TextBox Text="{Binding VarValue}"/>
<Button Content="Read"
Command="{Binding ReadVar_Command}"/>
<Button Content="Write"
Command="{Binding WriteVar_Command}"/>
</StackPanel>-->
</GroupBox>
<GroupBox Header="Axis">
<!--<ItemsControl ItemsSource="{Binding AxisList}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<UniformGrid Columns="2">
<TextBlock Text="{Binding sName}"/>
<TextBlock Text="{Binding sValue}"/>
</UniformGrid>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>-->
<EgtCOMMTest:AxesPanelV DataContext="{StaticResource AxesPanelVM}"/>
</GroupBox>
<GroupBox Header="OPState">
<ComboBox ItemsSource="{Binding OPStateList}"
SelectedItem="{Binding SelOPState}"/>
</GroupBox>
<StackPanel>
</StackPanel>
</StackPanel>
</EgtWPFLib5:EgtCustomWindow>