FaView.xaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <UserControl x:Class="Venus_MainPages.Views.FaView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
  7. xmlns:local="clr-namespace:Venus_MainPages.Views"
  8. xmlns:prism="http://prismlibrary.com/"
  9. prism:ViewModelLocator.AutoWireViewModel="True"
  10. xmlns:ctrls="clr-namespace:Venus_Themes.UserControls;assembly=Venus_Themes"
  11. mc:Ignorable="d" IsEnabled="{Binding PageEnabled}"
  12. d:DesignHeight="1024" d:DesignWidth="1580">
  13. <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
  14. <Grid.ColumnDefinitions>
  15. <ColumnDefinition Width="500"></ColumnDefinition>
  16. <ColumnDefinition Width="500"></ColumnDefinition>
  17. <ColumnDefinition Width="500"></ColumnDefinition>
  18. </Grid.ColumnDefinitions>
  19. <TabControl Height="400" Background="{DynamicResource Table_BG_Content}">
  20. <TabControl.Resources>
  21. <Style TargetType="{x:Type TabPanel}">
  22. <Setter Property="HorizontalAlignment" Value="Center"/>
  23. <Setter Property="Background" Value="{DynamicResource Color_BG_Button}"/>
  24. </Style>
  25. </TabControl.Resources>
  26. <TabItem Header="Host Communication" >
  27. <Grid Margin="5">
  28. <Grid.RowDefinitions>
  29. <RowDefinition Height="30" />
  30. <RowDefinition Height="Auto" />
  31. </Grid.RowDefinitions>
  32. <Grid.ColumnDefinitions>
  33. <ColumnDefinition Width="180"/>
  34. <ColumnDefinition Width="*"/>
  35. </Grid.ColumnDefinitions>
  36. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1" >
  37. <TextBlock Text="Communication State" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  38. </Border>
  39. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Column="1" Padding="5,1" Grid.ColumnSpan="2">
  40. <TextBlock Text="{Binding HostCommunicationStatus}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
  41. </Border>
  42. <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" Margin="0,80,0,10" >
  43. <Button Content="Enable" Command="{Binding FaEnableCommand}" Width="90" Height="30" VerticalAlignment="Center" IsEnabled="{Binding IsEnableEnable}" >
  44. </Button>
  45. <Button Content="Disable" Command="{Binding FaDisableCommand}" Width="90" Height="30" Margin="10,0,0,0" VerticalAlignment="Center" IsEnabled="{Binding IsEnableDisable }" >
  46. </Button>
  47. </StackPanel>
  48. </Grid>
  49. </TabItem>
  50. </TabControl>
  51. <TabControl Height="400" Grid.Column="1" Margin="10,0" Background="{DynamicResource Table_BG_Content}">
  52. <TabControl.Resources>
  53. <Style TargetType="{x:Type TabPanel}">
  54. <Setter Property="HorizontalAlignment" Value="Center"/>
  55. <Setter Property="Background" Value="{DynamicResource Color_BG_Button}"/>
  56. </Style>
  57. </TabControl.Resources>
  58. <TabItem Header="Host Control">
  59. <Grid Margin="5">
  60. <Grid.RowDefinitions>
  61. <RowDefinition Height="30" />
  62. <RowDefinition Height="Auto" />
  63. </Grid.RowDefinitions>
  64. <Grid.ColumnDefinitions>
  65. <ColumnDefinition Width="180"/>
  66. <ColumnDefinition />
  67. </Grid.ColumnDefinitions>
  68. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1" Grid.ColumnSpan="2">
  69. <TextBlock Text="Control State" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  70. </Border>
  71. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Column="2" Padding="5,1">
  72. <TextBlock Text="{Binding HostControlStatus}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
  73. </Border>
  74. <UniformGrid Columns="2" Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" Margin="0,80,0,10" >
  75. <Button Content="Online" Command="{Binding FaOnlineCommand}" Width="90" Height="30" Margin="0,0,10,5" IsEnabled="{Binding IsEnableOnline}">
  76. </Button>
  77. <Button Content="Offline" Command="{Binding FaOfflineCommand}" Width="90" Height="30" Margin="0,0,10,5" IsEnabled="{Binding IsEnableOffline}" >
  78. </Button>
  79. <Button Content="Local" Command="{Binding FaLocalCommand}" Width="90" Height="30" Margin="0,0,10,5" IsEnabled="{Binding IsEnableLocal}" >
  80. </Button>
  81. <Button Content="Remote" Command="{Binding FaRemoteCommand}" Width="90" Height="30" Margin="0,0,10,5" IsEnabled="{Binding IsEnableRemote}" >
  82. </Button>
  83. </UniformGrid>
  84. </Grid>
  85. </TabItem>
  86. </TabControl>
  87. <TabControl Height="400" Grid.Column="2" Background="{DynamicResource Table_BG_Content}">
  88. <TabControl.Resources>
  89. <Style TargetType="{x:Type TabPanel}">
  90. <Setter Property="HorizontalAlignment" Value="Center"/>
  91. <Setter Property="Background" Value="{DynamicResource Color_BG_Button}"/>
  92. </Style>
  93. </TabControl.Resources>
  94. <TabItem Header="Spooling">
  95. <Grid Margin="5">
  96. <Grid.RowDefinitions>
  97. <RowDefinition Height="30" />
  98. <RowDefinition Height="30" />
  99. <RowDefinition Height="30" />
  100. <RowDefinition Height="30" />
  101. <RowDefinition Height="30" />
  102. <RowDefinition Height="Auto" />
  103. </Grid.RowDefinitions>
  104. <Grid.ColumnDefinitions>
  105. <ColumnDefinition Width="180" />
  106. <ColumnDefinition />
  107. </Grid.ColumnDefinitions>
  108. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  109. <TextBlock Text="Spooling State" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  110. </Border>
  111. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Column="1" Padding="5,1">
  112. <TextBlock Text="{Binding SpoolingState}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
  113. </Border>
  114. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Padding="5,1">
  115. <TextBlock Text="Actual" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  116. </Border>
  117. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column="1" Padding="5,1">
  118. <TextBlock Text="{Binding SpoolingActual}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
  119. </Border>
  120. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="2" Padding="5,1">
  121. <TextBlock Text="Total" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  122. </Border>
  123. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column="1" Padding="5,1">
  124. <TextBlock Text="{Binding SpoolingTotal}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
  125. </Border>
  126. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="3" Padding="5,1">
  127. <TextBlock Text="Full Time" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  128. </Border>
  129. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column="1" Padding="5,1">
  130. <TextBlock Text="{Binding SpoolingFullTime}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
  131. </Border>
  132. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="4" Padding="5,1">
  133. <TextBlock Text="Start Time" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  134. </Border>
  135. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column="1" Padding="5,1">
  136. <TextBlock Text="{Binding SpoolingStartTime}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
  137. </Border>
  138. <StackPanel Orientation="Horizontal" Grid.Row="5" Margin="0,10" Grid.ColumnSpan="2" HorizontalAlignment="Center">
  139. <Button Content="Enable" Command="{Binding FaEnableSpoolingCommand}" Width="90" Height="30" IsEnabled="{Binding IsEnableEnableSpooling}">
  140. </Button>
  141. <Button Content="Disable" Command="{Binding FaDisableSpoolingCommand}" Width="90" Height="30" Margin="10,0,0,0" IsEnabled="{Binding IsSpoolingEnable}" >
  142. </Button>
  143. </StackPanel>
  144. </Grid>
  145. </TabItem>
  146. </TabControl>
  147. </Grid>
  148. </UserControl>