private async void SV_Shares_PreviewMouseWheel(object sender, MouseWheelEventArgs e) { GlobalHelper.HandleScroll(sender, e); if (SV_Shares.VerticalOffset == SV_Shares.ScrollableHeight && e.Delta < 0 && lastShareID != null && !isShareWorking) { isShareWorking = true; var shares = await KakaoRequestClass.GetShares(false, data, lastShareID); if (shares.Count > 0) { AddShares(shares); lastShareID = shares.Last().id; } isShareWorking = false; } }
private async void SV_UP_PreviewMouseWheel(object sender, MouseWheelEventArgs e) { GlobalHelper.HandleScroll(sender, e); if (SV_UP.VerticalOffset == SV_UP.ScrollableHeight && e.Delta < 0 && !isUPWorking) { isUPWorking = true; var ups = await KakaoRequestClass.GetShares(true, data, lastUPID); if (ups.Count > 0) { lastUPID = ups.Last().id; AddUps(ups); } isUPWorking = false; } }