ManualWindow.xaml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <Window
  2. x:Class="SHJX.Service.Shell.Views.Manual.ManualWindow"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:prism="http://prismlibrary.com/"
  9. xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
  10. Title="手动模式"
  11. Width="864"
  12. Height="950"
  13. prism:ViewModelLocator.AutoWireViewModel="True"
  14. Background="Transparent"
  15. ResizeMode="NoResize"
  16. WindowStartupLocation="CenterScreen"
  17. WindowStyle="None"
  18. mc:Ignorable="d">
  19. <i:Interaction.Triggers>
  20. <i:EventTrigger EventName="Loaded">
  21. <i:InvokeCommandAction Command="{Binding LoginLoadingCommand}" />
  22. </i:EventTrigger>
  23. <i:EventTrigger EventName="Closing">
  24. <i:InvokeCommandAction Command="{Binding ClosingCommand}" />
  25. </i:EventTrigger>
  26. </i:Interaction.Triggers>
  27. <Window.Resources>
  28. <DataTemplate x:Key="tabTemplate">
  29. <TabItem Header="{Binding Header}" />
  30. </DataTemplate>
  31. </Window.Resources>
  32. <Grid>
  33. <Grid.RowDefinitions>
  34. <RowDefinition Height="0.7*" />
  35. <RowDefinition Height="1*" />
  36. <RowDefinition Height="16*" />
  37. </Grid.RowDefinitions>
  38. <Border
  39. Grid.Row="0"
  40. Grid.RowSpan="3"
  41. Margin="2"
  42. Background="White"
  43. BorderBrush="#6452A4"
  44. BorderThickness="1"
  45. CornerRadius="0">
  46. <Border.Effect>
  47. <DropShadowEffect
  48. BlurRadius="10"
  49. Opacity="0.6"
  50. ShadowDepth="0"
  51. Color="LightGray" />
  52. </Border.Effect>
  53. </Border>
  54. <Border
  55. Grid.Row="0"
  56. Margin="2"
  57. Background="#6452A4"
  58. CornerRadius="0" />
  59. <Grid
  60. x:Name="ManualTag"
  61. Grid.Row="0"
  62. Background="Transparent"
  63. MouseLeftButtonDown="ManualTag_MouseLeftButtonDown">
  64. <TextBlock
  65. Margin="10,0,0,0"
  66. HorizontalAlignment="Left"
  67. VerticalAlignment="Center"
  68. FontFamily="幼圆"
  69. FontWeight="UltraBlack"
  70. Foreground="White"
  71. Text="手动模式" />
  72. <Button
  73. Name="btn_manual_close"
  74. Width="25"
  75. Height="25"
  76. Margin="0,0,10,0"
  77. HorizontalAlignment="Right"
  78. VerticalAlignment="Center"
  79. pu:ButtonHelper.ClickStyle="Sink"
  80. pu:ButtonHelper.CornerRadius="15"
  81. pu:ButtonHelper.HoverBrush="#929FDE"
  82. Background="Transparent"
  83. Click="btn_manual_close_Click"
  84. Cursor="Hand">
  85. <Image
  86. Width="20"
  87. Height="20"
  88. Source="/SHJX.Service.Resource;component/Assets/Photos/关闭.png" />
  89. </Button>
  90. </Grid>
  91. <Border
  92. Grid.Row="1"
  93. Width="840"
  94. Margin="0,5,0,5"
  95. Background="#6452A4"
  96. CornerRadius="5">
  97. <TabControl
  98. x:Name="Menu"
  99. Margin="20,0"
  100. HorizontalAlignment="Stretch"
  101. VerticalAlignment="Bottom"
  102. pu:TabControlHelper.SelectedForeground="White"
  103. Background="Transparent"
  104. Cursor="Hand"
  105. Foreground="#CCCCCC"
  106. ItemTemplate="{StaticResource ResourceKey=tabTemplate}"
  107. ItemsSource="{Binding TabItemInfos}">
  108. <i:Interaction.Triggers>
  109. <i:EventTrigger EventName="SelectionChanged">
  110. <i:InvokeCommandAction Command="{Binding MenuSelectionChangedCommand}" CommandParameter="{Binding ElementName=Menu, Path=SelectedItem.Header}" />
  111. </i:EventTrigger>
  112. </i:Interaction.Triggers>
  113. </TabControl>
  114. </Border>
  115. <Border
  116. Grid.Row="2"
  117. Width="840"
  118. Margin="0,0,0,10"
  119. Background="#F6FBFF"
  120. BorderBrush="#6452A4"
  121. BorderThickness="2"
  122. CornerRadius="5">
  123. <ScrollViewer
  124. HorizontalAlignment="Stretch"
  125. BorderBrush="#666666"
  126. BorderThickness="0"
  127. HorizontalScrollBarVisibility="Disabled"
  128. VerticalScrollBarVisibility="Auto">
  129. <ContentControl x:Name="manualOptionRegion" />
  130. </ScrollViewer>
  131. </Border>
  132. </Grid>
  133. </Window>