Prechádzať zdrojové kódy

编辑-图片 UI、UX优化

OYXH\oyxh 1 rok pred
rodič
commit
040bae45ed

+ 8 - 1
PDF Office/CustomControl/CompositeControl/SlidComboControl.xaml.cs

@@ -231,7 +231,14 @@ namespace PDF_Master.CustomControl.CompositeControl
                         control.combox.SelectedItems = (ComboDataItem)control.combox.SelectedItems;
 
                 }
-                control.combox.UpdateSelectedIndex();
+                if(e.NewValue is int index)
+                {
+                    if (index != -1)
+                    {
+                        control.combox.UpdateSelectedIndex();
+                    }
+                }
+                
             }
         }