WaferHistoryView.xaml.cs 679 B

123456789101112131415161718192021222324
  1. using System.Windows;
  2. using System.Windows.Controls;
  3. namespace VirgoUI.Client.Models.History.WaferHistory
  4. {
  5. /// <summary>
  6. /// WaferHistoryView.xaml 的交互逻辑
  7. /// </summary>
  8. public partial class WaferHistoryView : UserControl
  9. {
  10. public WaferHistoryView()
  11. {
  12. InitializeComponent();
  13. }
  14. private void dataGrid_LotList_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
  15. {
  16. dataGrid_LotList.CanUserAddRows = false;
  17. if (dataGrid_LotList.Items == null || dataGrid_LotList.Items.Count == 0)
  18. dataGrid_LotList.CanUserAddRows = true;
  19. }
  20. }
  21. }