InputFileNameDialogView.xaml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <UserControl
  2. x:Class="MECF.Framework.UI.Client.CenterViews.Editors.InputFileNameDialogView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:controls="clr-namespace:OpenSEMI.Ctrlib.Controls"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:micro="clr-namespace:Caliburn.Micro"
  10. d:DesignHeight="450"
  11. d:DesignWidth="800"
  12. mc:Ignorable="d">
  13. <Border
  14. Background="{DynamicResource Color_BG_Dialog_Inner}"
  15. BorderBrush="Gray"
  16. BorderThickness="0,1,0,0">
  17. <Grid
  18. Margin="50"
  19. HorizontalAlignment="Center"
  20. VerticalAlignment="Center">
  21. <Grid.ColumnDefinitions>
  22. <ColumnDefinition Width="90" />
  23. <ColumnDefinition />
  24. </Grid.ColumnDefinitions>
  25. <Grid.RowDefinitions>
  26. <RowDefinition Height="Auto" />
  27. <RowDefinition Height="50" />
  28. <RowDefinition Height="50" />
  29. <RowDefinition Height="Auto" />
  30. </Grid.RowDefinitions>
  31. <Border
  32. Grid.Row="0"
  33. Height="50"
  34. Padding="5,1"
  35. Background="{DynamicResource Table_BG_Title}"
  36. BorderBrush="{DynamicResource Table_BD}"
  37. BorderThickness="1,1,1,0"
  38. Visibility="{Binding FolderVisibility}">
  39. <TextBlock
  40. VerticalAlignment="Center"
  41. FontFamily="Arial"
  42. FontSize="16"
  43. Foreground="{DynamicResource FG_Black}"
  44. Text="Folder"
  45. TextWrapping="Wrap" />
  46. </Border>
  47. <Border
  48. Grid.Column="1"
  49. Height="50"
  50. Padding="5,1"
  51. Background="{DynamicResource Table_BG_Content}"
  52. BorderBrush="{DynamicResource Table_BD}"
  53. BorderThickness="0,1,1,0"
  54. Visibility="{Binding FolderVisibility}">
  55. <ComboBox
  56. x:Name="cbFolder"
  57. Width="300"
  58. Height="35"
  59. Background="AliceBlue"
  60. FontSize="14"
  61. ItemsSource="{Binding FilePaths.Keys}"
  62. SelectedIndex="{Binding SelectIndex}" />
  63. </Border>
  64. <Border
  65. Grid.Row="1"
  66. Padding="5,1"
  67. Background="{DynamicResource Table_BG_Title}"
  68. BorderBrush="{DynamicResource Table_BD}"
  69. BorderThickness="1,1,1,1">
  70. <TextBlock
  71. VerticalAlignment="Center"
  72. FontFamily="Arial"
  73. FontSize="16"
  74. Foreground="{DynamicResource FG_Black}"
  75. Text="Name"
  76. TextWrapping="Wrap" />
  77. </Border>
  78. <Border
  79. Grid.Row="1"
  80. Grid.Column="2"
  81. Padding="5,1"
  82. Background="{DynamicResource Table_BG_Content}"
  83. BorderBrush="{DynamicResource Table_BD}"
  84. BorderThickness="0,1,1,1">
  85. <TextBox
  86. x:Name="tbName"
  87. Width="300"
  88. Height="35"
  89. FontSize="14"
  90. Tag="NotClearFull"
  91. Text="{Binding FileName, UpdateSourceTrigger=PropertyChanged}"
  92. TextWrapping="NoWrap" />
  93. </Border>
  94. <Border
  95. Grid.Row="2"
  96. Padding="5,1"
  97. Background="{DynamicResource Table_BG_Title}"
  98. BorderBrush="{DynamicResource Table_BD}"
  99. BorderThickness="1,0,1,1">
  100. <TextBlock
  101. VerticalAlignment="Center"
  102. FontFamily="Arial"
  103. FontSize="16"
  104. Foreground="{DynamicResource FG_Black}"
  105. Text="Comment"
  106. TextWrapping="Wrap" />
  107. </Border>
  108. <Border
  109. Grid.Row="2"
  110. Grid.Column="2"
  111. Padding="5,1"
  112. Background="{DynamicResource Table_BG_Content}"
  113. BorderBrush="{DynamicResource Table_BD}"
  114. BorderThickness="0,0,1,1">
  115. <TextBox
  116. x:Name="tbComment"
  117. Width="300"
  118. Height="35"
  119. FontSize="14"
  120. Text="{Binding Comment, UpdateSourceTrigger=PropertyChanged}"
  121. TextWrapping="NoWrap" />
  122. </Border>
  123. <StackPanel
  124. Grid.Row="3"
  125. Grid.ColumnSpan="2"
  126. Margin="0,10"
  127. HorizontalAlignment="Center"
  128. VerticalAlignment="Center"
  129. Orientation="Horizontal">
  130. <Button
  131. Width="90"
  132. Height="30"
  133. Content="OK" >
  134. <i:Interaction.Triggers>
  135. <i:EventTrigger EventName="Click">
  136. <micro:ActionMessage MethodName="OK" />
  137. </i:EventTrigger>
  138. </i:Interaction.Triggers>
  139. </Button>
  140. <Button
  141. Width="90"
  142. Height="30"
  143. Margin="10,0,0,0"
  144. Content="Cancel">
  145. <i:Interaction.Triggers>
  146. <i:EventTrigger EventName="Click">
  147. <micro:ActionMessage MethodName="Cancel" />
  148. </i:EventTrigger>
  149. </i:Interaction.Triggers>
  150. </Button>
  151. </StackPanel>
  152. </Grid>
  153. </Border>
  154. </UserControl>