Преглед изворни кода

compdfkit(win) - 测量Demo 限制输入长度

liyuxuan пре 1 година
родитељ
комит
78ff2feb50
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      Demo/Examples/Compdfkit_Tools/Measure/MeasureSettingPanel.xaml

+ 2 - 2
Demo/Examples/Compdfkit_Tools/Measure/MeasureSettingPanel.xaml

@@ -35,7 +35,7 @@
                     <TextBox Name="RulerBaseText" Width="110"  VerticalContentAlignment="Center" FontSize="14"
                              InputMethod.IsInputMethodEnabled="False"
                              PreviewKeyDown="TextBox_PreviewKeyDown"
-                             CommandManager.PreviewCanExecute="TextBox_CanExecute">
+                             CommandManager.PreviewCanExecute="TextBox_CanExecute" MaxLength="6">
                         
                     </TextBox>
                     <ComboBox Name="RulerBaseUnitCombo" Width="110" FontSize="14" Margin="10,0,0,0" VerticalContentAlignment="Center">
@@ -47,7 +47,7 @@
                     <TextBox Name="RulerTranslateText" Width="110" FontSize="14" VerticalContentAlignment="Center"
                              InputMethod.IsInputMethodEnabled="False"
                              PreviewKeyDown="TextBox_PreviewKeyDown"
-                             CommandManager.PreviewCanExecute="TextBox_CanExecute">
+                             CommandManager.PreviewCanExecute="TextBox_CanExecute" MaxLength="6">
 
                     </TextBox>
                     <ComboBox Name="RulerTranslateCombo" Width="110" FontSize="14" Margin="10,0,0,0" VerticalContentAlignment="Center">