SelectCameraBrand.xaml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <UserControl x:Class="TeamAAS_VP.Views.Setting.SelectCameraBrand"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:prism="http://prismlibrary.com/"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
  8. xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
  9. xmlns:sys="clr-namespace:System;assembly=mscorlib"
  10. xmlns:enums="clr-namespace:TeamAAS_VP.Enums"
  11. xmlns:valRules="clr-namespace:TeamAAS_VP.Identity"
  12. xmlns:valueConvert="clr-namespace:TeamAAS_VP.ValueConverter"
  13. xmlns:ext="clr-namespace:TeamAAS_VP.Extension"
  14. xmlns:lex="http://wpflocalizeextension.codeplex.com"
  15. lex:LocalizeDictionary.DesignCulture="zh-CN"
  16. lex:ResxLocalizationProvider.DefaultAssembly="TeamAAS-VP"
  17. lex:ResxLocalizationProvider.DefaultDictionary="Lang"
  18. mc:Ignorable="d"
  19. d:Background="White"
  20. prism:ViewModelLocator.AutoWireViewModel="True"
  21. FontFamily="{DynamicResource DefaultFont}">
  22. <prism:Dialog.WindowStyle>
  23. <Style TargetType="Window">
  24. <Setter Property="prism:Dialog.WindowStartupLocation"
  25. Value="CenterScreen" />
  26. <!--<Setter Property="WindowChrome.WindowChrome">
  27. <Setter.Value>
  28. <WindowChrome CaptionHeight="0"
  29. ResizeBorderThickness="1" />
  30. </Setter.Value>
  31. </Setter>-->
  32. <Setter Property="WindowStyle"
  33. Value="None" />
  34. <Setter Property="AllowDrop"
  35. Value="True" />
  36. <Setter Property="BorderThickness"
  37. Value="0" />
  38. <Setter Property="ShowInTaskbar"
  39. Value="False" />
  40. <Setter Property="SizeToContent"
  41. Value="WidthAndHeight" />
  42. <Setter Property="WindowState"
  43. Value="Normal" />
  44. <Setter Property="Topmost"
  45. Value="True" />
  46. </Style>
  47. </prism:Dialog.WindowStyle>
  48. <UserControl.Resources>
  49. </UserControl.Resources>
  50. <Grid HorizontalAlignment="Center">
  51. <Grid.RowDefinitions>
  52. <RowDefinition Height="*" />
  53. <RowDefinition Height="50" />
  54. </Grid.RowDefinitions>
  55. <!--参数详情-->
  56. <Grid Margin="20,20">
  57. <Grid.RowDefinitions>
  58. <RowDefinition />
  59. </Grid.RowDefinitions>
  60. <Grid.ColumnDefinitions>
  61. <ColumnDefinition Width="50*" />
  62. <ColumnDefinition Width="50*" />
  63. </Grid.ColumnDefinitions>
  64. <!--相机品牌-->
  65. <TextBlock Text="{lex:Loc 相机品牌,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}"
  66. Grid.Row="3"
  67. Grid.Column="0"
  68. Style="{StaticResource MaterialDesignSubtitle1TextBlock}"
  69. HorizontalAlignment="Right"
  70. VerticalAlignment="Center"/>
  71. <ComboBox Grid.Row="3"
  72. Grid.Column="1"
  73. Margin="10,10"
  74. MinWidth="80"
  75. HorizontalContentAlignment="Left"
  76. HorizontalAlignment="Left"
  77. VerticalAlignment="Center"
  78. materialDesign:HintAssist.Hint="{lex:Loc 相机品牌}"
  79. SelectedItem="{Binding CameraBrand,Mode=TwoWay}"
  80. ItemsSource="{ext:EnumBindingSource EnumType=enums:CameraBrand}" />
  81. </Grid>
  82. <StackPanel Grid.Row="1"
  83. Orientation="Horizontal"
  84. HorizontalAlignment="Right">
  85. <Button Height="30"
  86. materialDesign:ButtonAssist.CornerRadius="10"
  87. ToolTip="{lex:Loc 确定}"
  88. Command="{Binding ConfirmCommand}">
  89. <TextBlock Text="{lex:Loc 确定}" />
  90. </Button>
  91. <Button Height="30"
  92. Margin="20,0"
  93. materialDesign:ButtonAssist.CornerRadius="10"
  94. Style="{StaticResource MaterialDesignRaisedButton}"
  95. ToolTip="{lex:Loc 取消}"
  96. Command="{Binding CancelCommand}">
  97. <TextBlock Text="{lex:Loc 取消}" />
  98. </Button>
  99. </StackPanel>
  100. </Grid>
  101. </UserControl>