MainWindow.xaml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <Window
  2. x:Class="LogoForceTestApp.Views.MainWindow"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:core="clr-namespace:LogoForceTestApp.Core;assembly=LogoForceTestApp.Core"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:hc="https://handyorg.github.io/handycontrol"
  8. xmlns:icon="http://metro.mahapps.com/winfx/xaml/iconpacks"
  9. xmlns:local="clr-namespace:LogoForceTestApp"
  10. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  11. xmlns:prism="http://prismlibrary.com/"
  12. xmlns:viewmodels="clr-namespace:LogoForceTestApp.ViewModels"
  13. Title="{Binding Title}"
  14. Width="1440"
  15. Height="800"
  16. d:DataContext="{d:DesignInstance Type=viewmodels:MainWindowViewModel}"
  17. prism:ViewModelLocator.AutoWireViewModel="True"
  18. WindowStartupLocation="CenterScreen"
  19. WindowState="Maximized"
  20. mc:Ignorable="d">
  21. <Window.Resources>
  22. <ResourceDictionary>
  23. <ResourceDictionary.MergedDictionaries>
  24. <ResourceDictionary Source="/LogoForceTestApp.Modules.MainModule;component/Dictionary.xaml" />
  25. </ResourceDictionary.MergedDictionaries>
  26. <local:JugetoBrushConvert x:Key="JugetoBrushConvet" />
  27. <local:JugetoStringConvet x:Key="JugetoStringConvet" />
  28. </ResourceDictionary>
  29. </Window.Resources>
  30. <Grid>
  31. <Grid.RowDefinitions>
  32. <RowDefinition Height="70" />
  33. <RowDefinition Height="*" />
  34. </Grid.RowDefinitions>
  35. <Grid>
  36. <Grid.Resources>
  37. <Style TargetType="Button">
  38. <Setter Property="BorderThickness" Value="0" />
  39. <Setter Property="Width" Value="90" />
  40. <Setter Property="Height" Value="90" />
  41. <Setter Property="Background" Value="{DynamicResource LightPrimaryBrush}" />
  42. </Style>
  43. </Grid.Resources>
  44. <Grid.ColumnDefinitions>
  45. <ColumnDefinition Width="*" />
  46. <ColumnDefinition Width="350" />
  47. <ColumnDefinition Width="*" />
  48. </Grid.ColumnDefinitions>
  49. <!--<StackPanel Orientation="Horizontal">
  50. <Button Command="{Binding GoMainPageCommand}">
  51. <icon:FontAwesome
  52. Width="80"
  53. Height="80"
  54. Kind="HomeSolid" />
  55. </Button>
  56. <Button Command="{Binding DataCommand}">
  57. <icon:PackIconForkAwesome
  58. Width="80"
  59. Height="80"
  60. Kind="AreaChart" />
  61. </Button>
  62. <Button Command="{Binding OperationLogPageCommand}">
  63. <icon:PackIconEvaIcons
  64. Width="80"
  65. Height="80"
  66. Kind="Eye" />
  67. </Button>
  68. <Button Command="{Binding LogCommand}">
  69. <icon:PackIconMaterial
  70. Width="80"
  71. Height="80"
  72. Kind="GestureTap" />
  73. </Button>
  74. <Button Command="{Binding SettingCommand}">
  75. <icon:PackIconMaterial
  76. Width="80"
  77. Height="80"
  78. Kind="Tools" />
  79. </Button>
  80. <Button Command="{Binding Tracing}">
  81. <icon:PackIconMaterial
  82. Width="80"
  83. Height="80"
  84. Kind="ClipboardTextSearchOutline" />
  85. </Button>
  86. </StackPanel>-->
  87. <StackPanel Grid.Row="0"
  88. Margin="10,0"
  89. HorizontalAlignment="Left"
  90. Orientation="Horizontal">
  91. <!--<TextBlock VerticalAlignment="Center"
  92. FontSize="20"
  93. FontWeight="Bold"
  94. Text="当前用户:" />
  95. <TextBlock Margin="10,0"
  96. VerticalAlignment="Center"
  97. FontSize="20"
  98. Foreground="{Binding LoinBrush}"
  99. Text="{Binding LoginMessage}" />
  100. <Button Command="{Binding LoginCommand}"
  101. VerticalAlignment="Center">
  102. <icon:FontAwesome Width="50"
  103. Height="50"
  104. Kind="UserAltSolid" />
  105. </Button>-->
  106. <!--<Button Content="注册"
  107. VerticalAlignment="Center"
  108. Margin="5"
  109. Width="80"
  110. Height="40"
  111. FontSize="22"
  112. Style="{StaticResource BtnStyle}"
  113. Command="{Binding SignInCommand}" />-->
  114. </StackPanel>
  115. <TextBlock
  116. Grid.Column="1"
  117. HorizontalAlignment="Center"
  118. VerticalAlignment="Center"
  119. FontSize="36"
  120. Foreground="Black">
  121. 智能门锁装配生产线
  122. </TextBlock>
  123. <StackPanel
  124. Grid.Column="2"
  125. Margin="10,0"
  126. HorizontalAlignment="Right"
  127. VerticalAlignment="Center"
  128. Orientation="Horizontal">
  129. <!--<Button Command="{Binding GoMainPageCommand}"
  130. VerticalAlignment="Center">
  131. <icon:FontAwesome Width="50"
  132. Height="50"
  133. Kind="HomeSolid" />
  134. </Button>-->
  135. <TextBlock VerticalAlignment="Center"
  136. FontSize="25"
  137. Foreground="Blue"
  138. Margin="20,0"
  139. Text="{Binding LineName}" />
  140. <!--<TextBlock
  141. VerticalAlignment="Center"
  142. FontSize="20"
  143. FontWeight="Bold"
  144. Text="当前用户:" />
  145. <TextBlock
  146. Margin="10,0"
  147. VerticalAlignment="Center"
  148. FontSize="18"
  149. Foreground="{Binding LoinBrush}"
  150. Text="{Binding LoginMessage}" />
  151. <Button Command="{Binding LoginCommand}">
  152. <icon:FontAwesome
  153. Width="60"
  154. Height="60"
  155. Kind="UserAltSolid" />
  156. </Button>-->
  157. <!--<Label
  158. Width="60"
  159. Height="60"
  160. Background="{Binding Jugement, Converter={StaticResource JugetoBrushConvet}}"
  161. Content="{Binding Jugement, Converter={StaticResource JugetoStringConvet}}"
  162. FontSize="20" />-->
  163. </StackPanel>
  164. </Grid>
  165. <hc:SimplePanel Grid.Row="1">
  166. <ContentControl prism:RegionManager.RegionName="{x:Static core:RegionNames.ContentRegion}" />
  167. <hc:ScrollViewer
  168. HorizontalAlignment="Right"
  169. IsInertiaEnabled="True"
  170. IsPenetrating="True"
  171. VerticalScrollBarVisibility="Hidden">
  172. <StackPanel
  173. Margin="0,10,10,10"
  174. VerticalAlignment="Bottom"
  175. hc:Growl.GrowlParent="True" />
  176. </hc:ScrollViewer>
  177. </hc:SimplePanel>
  178. </Grid>
  179. </Window>