WaferHistoryView.xaml.cs 762 B

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