aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-01-21 15:56:57 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-01-21 15:56:57 +0200
commit3234e33cc4ba354f0395bb514b8b2fa102cf38ec (patch)
tree064121c6d1b2d7ea428e705d8457f86ca95e4a4b /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views
parent68dca419117f9336d0fe21f9f04903906eeeef02 (diff)
downloadTango-3234e33cc4ba354f0395bb514b8b2fa102cf38ec.tar.gz
Tango-3234e33cc4ba354f0395bb514b8b2fa102cf38ec.zip
Started working on Developer module.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml135
1 files changed, 132 insertions, 3 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml
index cd91b007f..5b26b7891 100644
--- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml
+++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml
@@ -3,10 +3,139 @@
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:global="clr-namespace:Tango.MachineStudio.Developer"
+ xmlns:mahapps="http://metro.mahapps.com/winfx/xaml/controls"
+ xmlns:db="clr-namespace:Tango.MachineStudio.DB.Views.DBViews;assembly=Tango.MachineStudio.DB"
+ xmlns:commonControls="clr-namespace:Tango.MachineStudio.Common.Controls;assembly=Tango.MachineStudio.Common"
+ xmlns:designer="clr-namespace:Tango.MachineStudio.MachineDesigner.Views;assembly=Tango.MachineStudio.MachineDesigner"
+ xmlns:vm="clr-namespace:Tango.MachineStudio.Developer.ViewModels"
+ xmlns:localConverters="clr-namespace:Tango.MachineStudio.Developer.Converters"
+ xmlns:converters="clr-namespace:Tango.SharedUI.Converters;assembly=Tango.SharedUI"
xmlns:local="clr-namespace:Tango.MachineStudio.Developer.Views"
mc:Ignorable="d"
- d:DesignHeight="300" d:DesignWidth="300" Background="#CBCBCB">
- <Grid>
- <TextBlock FontSize="30" HorizontalAlignment="Center" VerticalAlignment="Center">DEVLOPER MODULE</TextBlock>
+ d:DesignHeight="720" d:DesignWidth="1280" Background="White" d:DataContext="{d:DesignInstance Type=vm:MainViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.MainViewVM}">
+
+ <UserControl.Resources>
+ <Style TargetType="{x:Type TabItem}" BasedOn="{StaticResource {x:Type TabItem}}">
+ <Setter Property="mahapps:ControlsHelper.HeaderFontSize" Value="18" />
+ <Setter Property="Margin" Value="2" />
+ </Style>
+
+ <converters:ColorToIntegerConverter x:Key="ColorToIntegerConverter"></converters:ColorToIntegerConverter>
+ <localConverters:DbRmlViewToEntityConverter x:Key="DbRmlViewToEntityConverter"></localConverters:DbRmlViewToEntityConverter>
+ </UserControl.Resources>
+
+ <Grid Margin="10">
+
+ <Grid>
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="450"/>
+ <ColumnDefinition Width="5"/>
+ <ColumnDefinition Width="474*"/>
+ </Grid.ColumnDefinitions>
+
+
+ <Grid>
+ <!--<Grid.RowDefinitions>
+ <RowDefinition Height="90"/>
+ <RowDefinition Height="319*"/>
+ <RowDefinition Height="333*"/>
+ <RowDefinition Height="60*"/>
+ </Grid.RowDefinitions>-->
+
+ <TabControl>
+ <TabItem Header="MACHINE" >
+ <StackPanel Margin="0 40 0 0">
+ <ComboBox ItemsSource="{Binding Adapter.Machines}" SelectedItem="{Binding SelectedMachine}" materialDesign:HintAssist.IsFloating="True" materialDesign:HintAssist.Hint="Selected machine" Margin="40 0 40 0">
+ <ComboBox.ItemTemplate>
+ <DataTemplate>
+ <StackPanel>
+ <TextBlock Text="{Binding SerialNumber}" FontWeight="Bold" FontStyle="Italic"></TextBlock>
+ <TextBlock FontSize="11" Text="{Binding Name}" Foreground="Gray"></TextBlock>
+ </StackPanel>
+ </DataTemplate>
+ </ComboBox.ItemTemplate>
+ </ComboBox>
+ <designer:MachineView IsHitTestVisible="False" Margin="0 40 0 0" DataContext="{Binding SelectedMachine}" />
+ <Button Command="{Binding EditMachineCommand}" HorizontalAlignment="Right" Margin="0 10 30 0" Style="{StaticResource MaterialDesignFlatButton}">
+ <StackPanel Orientation="Horizontal">
+ <materialDesign:PackIcon VerticalAlignment="Center" Kind="Pencil"></materialDesign:PackIcon>
+ <TextBlock Margin="10 0 0 0">EDIT</TextBlock>
+ </StackPanel>
+ </Button>
+ </StackPanel>
+ </TabItem>
+ <TabItem Header="MEDIA">
+ <DockPanel Margin="0 40 0 0">
+ <ComboBox DockPanel.Dock="Top" ItemsSource="{Binding Adapter.Rmls}" SelectedItem="{Binding SelectedRML,Converter={StaticResource DbRmlViewToEntityConverter}}" materialDesign:HintAssist.IsFloating="True" materialDesign:HintAssist.Hint="Selected RML" Margin="40 0 40 0">
+ <ComboBox.ItemTemplate>
+ <DataTemplate>
+ <StackPanel>
+ <TextBlock Text="{Binding Name}" FontWeight="Bold" FontStyle="Italic"></TextBlock>
+ <TextBlock FontSize="11" Text="{Binding Manufacturer}" Foreground="Gray"></TextBlock>
+ </StackPanel>
+ </DataTemplate>
+ </ComboBox.ItemTemplate>
+ </ComboBox>
+
+ <ScrollViewer Margin="30 10 30 0">
+ <db:RmlView Margin="0 0 10 0" IsEnabled="False" DataContext="{Binding SelectedRML,Converter={StaticResource DbRmlViewToEntityConverter}}" />
+ </ScrollViewer>
+ </DockPanel>
+ </TabItem>
+ <TabItem Header="PROCESS">
+
+ </TabItem>
+ <TabItem Header="CONTROL">
+
+ </TabItem>
+ </TabControl>
+
+ <!--<materialDesign:Card Background="{DynamicResource MaterialDesignBackground}">
+ <StackPanel>
+ <Expander Header="MACHINE">
+
+ </Expander>
+
+ <Separator Foreground="{StaticResource MaterialDesignDivider}" Background="{StaticResource MaterialDesignDivider}" />
+
+ <Expander Header="MEDIA">
+
+ </Expander>
+
+ <Separator Foreground="{StaticResource MaterialDesignDivider}" Background="{StaticResource MaterialDesignDivider}" />
+
+ <Expander Header="PROCESS">
+
+ </Expander>
+
+ <Separator Foreground="{StaticResource MaterialDesignDivider}" Background="{StaticResource MaterialDesignDivider}" />
+
+ <Expander Header="CONTROL">
+
+ </Expander>
+ </StackPanel>
+ </materialDesign:Card>-->
+
+ <!--<Grid>
+ <GroupBox Header="MEDIA" Margin="5"></GroupBox>
+ </Grid>
+
+ <Grid Grid.Row="1">
+ <GroupBox Header="PROCESS PARAMETERS" Margin="5"></GroupBox>
+ </Grid>
+
+ <Grid Grid.Row="2">
+ <GroupBox Header="CONTROL PARAMETERS" Margin="5"></GroupBox>
+ </Grid>-->
+
+ <!--<Grid Grid.Row="3">
+ <Button Height="40">EXPORT</Button>
+ </Grid>-->
+ </Grid>
+
+ </Grid>
+
</Grid>
</UserControl>