using CommunityToolkit.HighPerformance; using HeBianGu.Base.WpfBase; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; 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.Shapes; namespace HeBianGu.App.Disk { /// /// WaitUploadControl.xaml 的交互逻辑 /// public partial class WaitUploadControl : UserControl { public WaitUploadControl() { InitializeComponent(); this.Loaded += OnLoaded; } private async void OnLoaded(object sender, RoutedEventArgs e) { if ( this.DataContext is SendViewModel viewModel) { viewModel.GetWaitUploadItems(); } } } }