Browse Source

Merge branch 'dev' of http://git.kdan.cc:8865/Windows/PDFOffice_Windows_exe into dev

OYXH\oyxh 1 năm trước cách đây
mục cha
commit
f4d89573bc

+ 1 - 0
PDF Office/Views/BOTA/SearchContent.xaml

@@ -16,6 +16,7 @@
     d:DesignWidth="800"
     prism:ViewModelLocator.AutoWireViewModel="True"
     KeyDown="UserControl_KeyDown"
+    SizeChanged="UserControl_SizeChanged"
     Loaded="UserControl_Loaded"
     mc:Ignorable="d">
 

+ 9 - 0
PDF Office/Views/BOTA/SearchContent.xaml.cs

@@ -180,5 +180,14 @@ namespace PDF_Office.Views.BOTA
         {
             SearchResultList.SelectedIndex = -1;
         }
+
+        private void UserControl_SizeChanged(object sender, SizeChangedEventArgs e)
+        {
+            SearchContent searchContent = sender as SearchContent;
+            if (searchContent!=null&& searchContent.ActualWidth>209&& searchContent.ActualWidth<216)
+            {
+                SearchText.Focus();
+            }
+        }
     }
 }