|
|
@@ -3,6 +3,7 @@
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
+ xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
|
xmlns:local="clr-namespace:OHV.Module.MainViews.Views"
|
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
|
prism:ViewModelLocator.AutoWireViewModel="True"
|
|
|
@@ -10,12 +11,192 @@
|
|
|
mc:Ignorable="d"
|
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
|
<Grid>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition Width="1*"/>
|
|
|
<ColumnDefinition Width="1*"/>
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
- <ContentControl Grid.Column="1" prism:RegionManager.RegionName="IOView"/>
|
|
|
+ <Grid Grid.Column="0">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="38*"/>
|
|
|
+ <RowDefinition Height="7*"/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
|
+ <DockPanel Grid.Row="0">
|
|
|
+ <!--<TextBlock Text="Teaching Pos View" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="Red" FontSize="30"/>-->
|
|
|
+ <ListView x:Name="LV_PositionView" ItemsSource="{Binding PosData}">
|
|
|
+ <ListView.View>
|
|
|
+ <GridView>
|
|
|
+ <GridViewColumn DisplayMemberBinding="{Binding No}" Header="No"/>
|
|
|
+ <GridViewColumn DisplayMemberBinding="{Binding Name}" Header="Name"/>
|
|
|
+ <GridViewColumn DisplayMemberBinding="{Binding Positioin}" Header="Position"/>
|
|
|
+ <GridViewColumn DisplayMemberBinding="{Binding Tag}" Header="Tag"/>
|
|
|
+ </GridView>
|
|
|
+ </ListView.View>
|
|
|
+ </ListView>
|
|
|
+ </DockPanel>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <Grid Grid.Row="1">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+
|
|
|
+ <DockPanel Grid.Row="1" Grid.Column="0">
|
|
|
+ <Button HorizontalAlignment="Stretch" Height="Auto">
|
|
|
+ <StackPanel>
|
|
|
+ <materialDesign:PackIcon Kind="FileUpload" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
|
|
|
+ <TextBlock Text="Others" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+ </DockPanel>
|
|
|
+
|
|
|
+ <DockPanel Grid.Row="1" Grid.Column="1">
|
|
|
+ <Button HorizontalAlignment="Stretch" Height="Auto">
|
|
|
+ <StackPanel>
|
|
|
+ <materialDesign:PackIcon Kind="FileUpload" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
|
|
|
+ <TextBlock Text="Others" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+ </DockPanel>
|
|
|
+
|
|
|
+ <DockPanel Grid.Row="1" Grid.Column="2">
|
|
|
+ <Button HorizontalAlignment="Stretch" Height="Auto">
|
|
|
+ <StackPanel>
|
|
|
+ <materialDesign:PackIcon Kind="MapMarkerCircle" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
|
|
|
+ <TextBlock Text="Map" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+ </DockPanel>
|
|
|
+
|
|
|
+ <DockPanel Grid.Row="1" Grid.Column="3">
|
|
|
+ <Button HorizontalAlignment="Stretch" Height="Auto">
|
|
|
+ <StackPanel>
|
|
|
+ <materialDesign:PackIcon Kind="FileUpload" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
|
|
|
+ <TextBlock Text="Load" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+ </DockPanel>
|
|
|
+
|
|
|
+ <DockPanel Grid.Row="1" Grid.Column="4">
|
|
|
+ <Button HorizontalAlignment="Stretch" Height="Auto">
|
|
|
+ <StackPanel>
|
|
|
+ <materialDesign:PackIcon Kind="ContentSaveOutline" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
|
|
|
+ <TextBlock Text="Save" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+ </DockPanel>
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ <Grid Grid.Column="1">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="44*"/>
|
|
|
+ <RowDefinition Height="31*"/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+
|
|
|
+ <Grid Grid.Row="0">
|
|
|
+ <DockPanel Grid.Row="0">
|
|
|
+ <ContentControl Grid.Column="1" prism:RegionManager.RegionName="IOView"/>
|
|
|
+ </DockPanel>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ <Grid Grid.Row="1">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ <ColumnDefinition/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="60*"/>
|
|
|
+ <RowDefinition Height="37*"/>
|
|
|
+ <RowDefinition Height="60*"/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+
|
|
|
+ <DockPanel Grid.Column="0" Grid.Row="0">
|
|
|
+ <Button HorizontalAlignment="Stretch" Height="Auto" BorderBrush="Gray" BorderThickness="2">
|
|
|
+ <StackPanel>
|
|
|
+ <materialDesign:PackIcon Kind="PowerSettings" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
|
|
|
+ <TextBlock Text="Servo On" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+ </DockPanel>
|
|
|
+
|
|
|
+ <DockPanel Grid.Column="0" Grid.Row="1">
|
|
|
+ <Border BorderBrush="Gray" BorderThickness="2">
|
|
|
+ <TextBlock Text="Nagative Sensor" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
+ </Border>
|
|
|
+ </DockPanel>
|
|
|
+
|
|
|
+ <DockPanel Grid.Column="1" Grid.Row="1">
|
|
|
+ <Border BorderBrush="Gray" BorderThickness="2">
|
|
|
+ <TextBlock Text="Home Sensor" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
+ </Border>
|
|
|
+ </DockPanel>
|
|
|
+
|
|
|
+ <DockPanel Grid.Column="2" Grid.Row="1">
|
|
|
+ <Border BorderBrush="Gray" BorderThickness="2">
|
|
|
+ <TextBlock Text="Positive Sensor" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
+ </Border>
|
|
|
+ </DockPanel>
|
|
|
+
|
|
|
+ <DockPanel Grid.Column="1" Grid.Row="0">
|
|
|
+ <!--<TextBlock Text="Servo On" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center"/>-->
|
|
|
+ <Button HorizontalAlignment="Stretch" Height="Auto" BorderBrush="Gray" BorderThickness="2">
|
|
|
+ <StackPanel>
|
|
|
+ <materialDesign:PackIcon Kind="PowerPlugOff" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
|
|
|
+ <TextBlock Text="Servo Off" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+ </DockPanel>
|
|
|
+
|
|
|
+ <DockPanel Grid.Column="2" Grid.Row="0">
|
|
|
+ <!--<TextBlock Text="Configs" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center"/>-->
|
|
|
+ <Button HorizontalAlignment="Stretch" Height="Auto" BorderBrush="Gray" BorderThickness="2">
|
|
|
+ <StackPanel>
|
|
|
+ <materialDesign:PackIcon Kind="SettingsTransferOutline" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
|
|
|
+ <TextBlock Text="Servo Config" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+ </DockPanel>
|
|
|
+
|
|
|
+ <DockPanel Grid.Column="0" Grid.Row="2">
|
|
|
+ <Button HorizontalAlignment="Stretch" Height="Auto" BorderBrush="Gray" BorderThickness="2">
|
|
|
+ <StackPanel>
|
|
|
+ <materialDesign:PackIcon Kind="ArrowLeftBoldBoxOutline" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
|
|
|
+ <TextBlock Text="Jog -" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+ </DockPanel>
|
|
|
+
|
|
|
+ <DockPanel Grid.Column="1" Grid.Row="2">
|
|
|
+ <Border BorderBrush="Gray" BorderThickness="2">
|
|
|
+ <StackPanel >
|
|
|
+ <TextBlock Text="Pos" FontSize="25" HorizontalAlignment="Center" VerticalAlignment="Top"/>
|
|
|
+ <TextBlock Text="0.0mm" FontSize="25" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="20,0"/>
|
|
|
+ </StackPanel>
|
|
|
+ </Border>
|
|
|
+ </DockPanel>
|
|
|
+
|
|
|
+ <DockPanel Grid.Column="2" Grid.Row="2">
|
|
|
+ <Button HorizontalAlignment="Stretch" Height="Auto" BorderBrush="Gray" BorderThickness="2">
|
|
|
+ <StackPanel>
|
|
|
+ <materialDesign:PackIcon Kind="ArrowRightBoldBoxOutline" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
|
|
|
+ <TextBlock Text="Jog +" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+ </DockPanel>
|
|
|
+
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
</Grid>
|
|
|
</UserControl>
|