using BBWY.Client.ViewModels.PackTask; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace BBWY.Client.Views.SealBox { /// /// SealBoxNoConfigureControl.xaml 的交互逻辑 /// public partial class SealBoxNoConfigureControl : UserControl { public SealBoxNoConfigureControl() { InitializeComponent(); } /// /// /// /// /// private void listbox_order_ScrollChanged(object sender, ScrollChangedEventArgs e) { //if (e.ExtentHeight - e.ViewportHeight - e.VerticalOffset < 100) //{ // var vm = this.DataContext as WareHouseListViewModel;//获取绑定的数据 // if (vm.WareNoSealBoxModels!=null&& vm.WaitSealBoxModelList !=null&& vm.WareNoSealBoxModels.Count==vm.WaitSealBoxModelList.Count) // { // var datas = vm.WareNoSealBoxModels.Where(w => w.SealBoxSkus.Count == 0).FirstOrDefault(); // if (datas!=null) // { // datas.SealBoxSkus = vm.WaitSealBoxModelList.FirstOrDefault(w => w.ShopId == datas.ShopId).SealBoxSkus; // } // } // // 滚动到底部 //} } } }