终端一体化运控平台
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

ParSet.xaml 5.6 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <UserControl
  2. x:Class="BPASmartClient.MorkS.View.ParSet"
  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.MorkS.View"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
  9. xmlns:vm="clr-namespace:BPASmartClient.MorkS.ViewModel"
  10. Name="参数设置界面"
  11. d:DesignHeight="450"
  12. d:DesignWidth="800"
  13. mc:Ignorable="d">
  14. <UserControl.DataContext>
  15. <vm:ParSetViewModel />
  16. </UserControl.DataContext>
  17. <UserControl.Resources>
  18. <ResourceDictionary>
  19. <ResourceDictionary.MergedDictionaries>
  20. <ResourceDictionary>
  21. <Style x:Key="TextBlockStyle" TargetType="TextBlock">
  22. <Setter Property="FontFamily" Value="楷体" />
  23. <Setter Property="FontSize" Value="18" />
  24. <Setter Property="Foreground" Value="{StaticResource TextBlockForeground}" />
  25. <Setter Property="VerticalAlignment" Value="Center" />
  26. <Setter Property="HorizontalAlignment" Value="Center" />
  27. </Style>
  28. <Style x:Key="TextBoxStyle" TargetType="TextBox">
  29. <Setter Property="FontFamily" Value="楷体" />
  30. <Setter Property="FontSize" Value="22" />
  31. <Setter Property="Background" Value="Transparent" />
  32. <Setter Property="Foreground" Value="{StaticResource TextBlockForeground}" />
  33. <Setter Property="BorderBrush" Value="#FF23CACA" />
  34. <Setter Property="CaretBrush" Value="Aqua" />
  35. <Setter Property="VerticalAlignment" Value="Center" />
  36. </Style>
  37. </ResourceDictionary>
  38. </ResourceDictionary.MergedDictionaries>
  39. </ResourceDictionary>
  40. </UserControl.Resources>
  41. <Grid Margin="10">
  42. <Grid.RowDefinitions>
  43. <RowDefinition Height="35" />
  44. <RowDefinition Height="Auto" />
  45. </Grid.RowDefinitions>
  46. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  47. <TextBlock Style="{StaticResource TextBlockStyle}" Text="请点击按钮保存参数:" />
  48. <pry:IcoButton
  49. Grid.Column="5"
  50. Width="140"
  51. HorizontalAlignment="Left"
  52. Command="{Binding SaveInfoCommand}"
  53. Content="保存配置"
  54. FontSize="16"
  55. IcoText="&#xe936;"
  56. Style="{StaticResource IcoButtonStyle}">
  57. <pry:IcoButton.Foreground>
  58. <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
  59. <GradientStop Color="#FFBB662A" />
  60. <GradientStop Offset="1" Color="White" />
  61. </LinearGradientBrush>
  62. </pry:IcoButton.Foreground>
  63. </pry:IcoButton>
  64. </StackPanel>
  65. <!-- 参数放置面板 -->
  66. <Grid Grid.Row="2">
  67. <ItemsControl ItemsSource="{Binding parSets}">
  68. <ItemsControl.ItemTemplate>
  69. <DataTemplate>
  70. <StackPanel Orientation="Horizontal">
  71. <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding TextBlockContext}" />
  72. <TextBox
  73. Width="100"
  74. Margin="10,0,0,0"
  75. VerticalAlignment="Center"
  76. Background="Transparent"
  77. BorderBrush="#FF23CACA"
  78. CaretBrush="Aqua"
  79. FontFamily="楷体"
  80. FontSize="21"
  81. Foreground="#ff34f7f7"
  82. Text="{Binding Minute}" />
  83. <TextBlock Style="{StaticResource TextBlockStyle}" Text="(分)" />
  84. <TextBox
  85. Width="100"
  86. Margin="0,10"
  87. VerticalAlignment="Center"
  88. Background="Transparent"
  89. BorderBrush="#FF23CACA"
  90. CaretBrush="Aqua"
  91. FontFamily="楷体"
  92. FontSize="21"
  93. Foreground="#ff34f7f7"
  94. Text="{Binding Second}" />
  95. <TextBlock Style="{StaticResource TextBlockStyle}" Text="(秒)" />
  96. <CheckBox
  97. Height="20"
  98. Margin="10"
  99. VerticalAlignment="Center"
  100. Background="#FF2AB2E7"
  101. Content="{Binding CheckBoxContext}"
  102. FontSize="14"
  103. Foreground="#00c2f4"
  104. IsChecked="{Binding IsShield}"
  105. Template="{StaticResource CbTemplate}" />
  106. </StackPanel>
  107. </DataTemplate>
  108. </ItemsControl.ItemTemplate>
  109. </ItemsControl>
  110. </Grid>
  111. </Grid>
  112. </UserControl>