123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- <UserControl x:Class="Venus_MainPages.Views.FaView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- 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:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
- xmlns:local="clr-namespace:Venus_MainPages.Views"
- xmlns:prism="http://prismlibrary.com/"
- prism:ViewModelLocator.AutoWireViewModel="True"
- xmlns:ctrls="clr-namespace:Venus_Themes.UserControls;assembly=Venus_Themes"
- mc:Ignorable="d" IsEnabled="{Binding PageEnabled}"
- d:DesignHeight="1024" d:DesignWidth="1580">
- <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="500"></ColumnDefinition>
- <ColumnDefinition Width="500"></ColumnDefinition>
- <ColumnDefinition Width="500"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <TabControl Height="400" Background="{DynamicResource Table_BG_Content}">
- <TabControl.Resources>
- <Style TargetType="{x:Type TabPanel}">
- <Setter Property="HorizontalAlignment" Value="Center"/>
- <Setter Property="Background" Value="{DynamicResource Color_BG_Button}"/>
- </Style>
- </TabControl.Resources>
- <TabItem Header="Host Communication" >
- <Grid Margin="5">
- <Grid.RowDefinitions>
- <RowDefinition Height="30" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="180"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1" >
- <TextBlock Text="Communication State" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
- </Border>
- <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Column="1" Padding="5,1" Grid.ColumnSpan="2">
- <TextBlock Text="{Binding HostCommunicationStatus}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
- </Border>
- <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" Margin="0,80,0,10" >
- <Button Content="Enable" Command="{Binding FaEnableCommand}" Width="90" Height="30" VerticalAlignment="Center" IsEnabled="{Binding IsEnableEnable}" >
- </Button>
- <Button Content="Disable" Command="{Binding FaDisableCommand}" Width="90" Height="30" Margin="10,0,0,0" VerticalAlignment="Center" IsEnabled="{Binding IsEnableDisable }" >
- </Button>
- </StackPanel>
- </Grid>
- </TabItem>
- </TabControl>
- <TabControl Height="400" Grid.Column="1" Margin="10,0" Background="{DynamicResource Table_BG_Content}">
- <TabControl.Resources>
- <Style TargetType="{x:Type TabPanel}">
- <Setter Property="HorizontalAlignment" Value="Center"/>
- <Setter Property="Background" Value="{DynamicResource Color_BG_Button}"/>
- </Style>
- </TabControl.Resources>
- <TabItem Header="Host Control">
- <Grid Margin="5">
- <Grid.RowDefinitions>
- <RowDefinition Height="30" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="180"/>
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1" Grid.ColumnSpan="2">
- <TextBlock Text="Control State" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
- </Border>
- <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Column="2" Padding="5,1">
- <TextBlock Text="{Binding HostControlStatus}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
- </Border>
- <UniformGrid Columns="2" Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" Margin="0,80,0,10" >
- <Button Content="Online" Command="{Binding FaOnlineCommand}" Width="90" Height="30" Margin="0,0,10,5" IsEnabled="{Binding IsEnableOnline}">
- </Button>
- <Button Content="Offline" Command="{Binding FaOfflineCommand}" Width="90" Height="30" Margin="0,0,10,5" IsEnabled="{Binding IsEnableOffline}" >
- </Button>
- <Button Content="Local" Command="{Binding FaLocalCommand}" Width="90" Height="30" Margin="0,0,10,5" IsEnabled="{Binding IsEnableLocal}" >
- </Button>
- <Button Content="Remote" Command="{Binding FaRemoteCommand}" Width="90" Height="30" Margin="0,0,10,5" IsEnabled="{Binding IsEnableRemote}" >
- </Button>
- </UniformGrid>
- </Grid>
- </TabItem>
- </TabControl>
- <TabControl Height="400" Grid.Column="2" Background="{DynamicResource Table_BG_Content}">
- <TabControl.Resources>
- <Style TargetType="{x:Type TabPanel}">
- <Setter Property="HorizontalAlignment" Value="Center"/>
- <Setter Property="Background" Value="{DynamicResource Color_BG_Button}"/>
- </Style>
- </TabControl.Resources>
- <TabItem Header="Spooling">
- <Grid Margin="5">
- <Grid.RowDefinitions>
- <RowDefinition Height="30" />
- <RowDefinition Height="30" />
- <RowDefinition Height="30" />
- <RowDefinition Height="30" />
- <RowDefinition Height="30" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="180" />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
- <TextBlock Text="Spooling State" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
- </Border>
- <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Column="1" Padding="5,1">
- <TextBlock Text="{Binding SpoolingState}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
- </Border>
- <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Padding="5,1">
- <TextBlock Text="Actual" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
- </Border>
- <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column="1" Padding="5,1">
- <TextBlock Text="{Binding SpoolingActual}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
- </Border>
- <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="2" Padding="5,1">
- <TextBlock Text="Total" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
- </Border>
- <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column="1" Padding="5,1">
- <TextBlock Text="{Binding SpoolingTotal}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
- </Border>
- <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="3" Padding="5,1">
- <TextBlock Text="Full Time" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
- </Border>
- <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column="1" Padding="5,1">
- <TextBlock Text="{Binding SpoolingFullTime}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
- </Border>
- <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="4" Padding="5,1">
- <TextBlock Text="Start Time" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
- </Border>
- <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column="1" Padding="5,1">
- <TextBlock Text="{Binding SpoolingStartTime}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
- </Border>
- <StackPanel Orientation="Horizontal" Grid.Row="5" Margin="0,10" Grid.ColumnSpan="2" HorizontalAlignment="Center">
- <Button Content="Enable" Command="{Binding FaEnableSpoolingCommand}" Width="90" Height="30" IsEnabled="{Binding IsEnableEnableSpooling}">
- </Button>
- <Button Content="Disable" Command="{Binding FaDisableSpoolingCommand}" Width="90" Height="30" Margin="10,0,0,0" IsEnabled="{Binding IsSpoolingEnable}" >
- </Button>
- </StackPanel>
- </Grid>
- </TabItem>
- </TabControl>
- </Grid>
- </UserControl>
|