终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

144 lines
5.2 KiB

  1. <Window
  2. x:Class="BPASmartClient.Academy.View.ParameterSetView"
  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:local="clr-namespace:BPASmartClient.Academy.View"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:vm="clr-namespace:BPASmartClient.Academy.ViewModel"
  9. Title="ParameterSetView"
  10. Width="350"
  11. Height="400"
  12. AllowsTransparency="True"
  13. Background="{x:Null}"
  14. WindowStartupLocation="CenterScreen"
  15. WindowStyle="None"
  16. mc:Ignorable="d">
  17. <Window.DataContext>
  18. <vm:ParameterSetViewModel />
  19. </Window.DataContext>
  20. <Window.Resources>
  21. <Style x:Key="btnStyle" TargetType="Button">
  22. <Setter Property="Foreground" Value="White" />
  23. <Setter Property="Background" Value="#4135cb" />
  24. <Setter Property="Height" Value="35" />
  25. <Setter Property="Width" Value="100" />
  26. <Setter Property="BorderThickness" Value="0" />
  27. <Setter Property="FontSize" Value="16" />
  28. <Setter Property="Opacity" Value="0.85" />
  29. <Setter Property="Template">
  30. <Setter.Value>
  31. <ControlTemplate TargetType="Button">
  32. <Border
  33. x:Name="br"
  34. Background="{TemplateBinding Background}"
  35. CornerRadius="5">
  36. <ContentPresenter
  37. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  38. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  39. Content="{TemplateBinding Content}" />
  40. </Border>
  41. <ControlTemplate.Triggers>
  42. <Trigger Property="IsMouseOver" Value="True">
  43. <Setter Property="Opacity" Value="1" />
  44. </Trigger>
  45. </ControlTemplate.Triggers>
  46. </ControlTemplate>
  47. </Setter.Value>
  48. </Setter>
  49. </Style>
  50. </Window.Resources>
  51. <Border
  52. Background="#1e293b"
  53. BorderThickness="5"
  54. CornerRadius="20">
  55. <Border.Effect>
  56. <DropShadowEffect
  57. BlurRadius="15"
  58. Direction="0"
  59. ShadowDepth="0"
  60. Color="DeepSkyBlue" />
  61. </Border.Effect>
  62. <Grid
  63. Name="gr"
  64. Margin="20"
  65. Background="Transparent">
  66. <Grid.ColumnDefinitions>
  67. <ColumnDefinition Width="0.8*" />
  68. <ColumnDefinition />
  69. </Grid.ColumnDefinitions>
  70. <Grid.RowDefinitions>
  71. <RowDefinition Height="50" />
  72. <RowDefinition Height="50" />
  73. <RowDefinition />
  74. <RowDefinition Height="50" />
  75. </Grid.RowDefinitions>
  76. <TextBlock
  77. Grid.Row="0"
  78. Grid.Column="0"
  79. HorizontalAlignment="Right"
  80. VerticalAlignment="Center"
  81. FontSize="16"
  82. Foreground="#8e9db2"
  83. Text="请选择项目类型:" />
  84. <ComboBox
  85. Grid.Row="0"
  86. Grid.Column="1"
  87. MinHeight="30"
  88. BorderThickness="2"
  89. FontSize="16"
  90. Foreground="#ddd"
  91. IsEditable="False"
  92. ItemsSource="{Binding projectNames}"
  93. SelectedValue="{Binding Par.ProjectTypeName}" />
  94. <TextBlock
  95. Grid.Row="1"
  96. Grid.Column="0"
  97. HorizontalAlignment="Right"
  98. VerticalAlignment="Center"
  99. FontSize="16"
  100. Foreground="#8e9db2"
  101. Text="请输入设备IP:" />
  102. <TextBox
  103. Grid.Row="1"
  104. Grid.Column="1"
  105. Height="30"
  106. VerticalContentAlignment="Center"
  107. Background="Transparent"
  108. BorderBrush="#074b92"
  109. BorderThickness="2"
  110. CaretBrush="DeepSkyBlue"
  111. FontSize="16"
  112. Foreground="#ddd"
  113. Style="{x:Null}"
  114. Text="{Binding Par.IpAddress}" />
  115. <Grid Grid.Row="3" Grid.ColumnSpan="2">
  116. <Grid.ColumnDefinitions>
  117. <ColumnDefinition />
  118. <ColumnDefinition />
  119. </Grid.ColumnDefinitions>
  120. <Button
  121. Name="btn_save"
  122. Grid.Row="3"
  123. Grid.Column="1"
  124. Content="保 存"
  125. Style="{StaticResource btnStyle}" />
  126. <Button
  127. Name="btn_cancel"
  128. Grid.Row="3"
  129. Grid.Column="0"
  130. Background="#ff106e"
  131. Content="取 消"
  132. Style="{StaticResource btnStyle}" />
  133. </Grid>
  134. </Grid>
  135. </Border>
  136. </Window>