Ejemplo n.º 1
0
    private async void OnScrolled(object sender, ScrolledEventArgs e)
    {
        _cts?.Cancel();
        _cts = new CancellationTokenSource();

        try
        {
            await Task.Delay(500, _cts.Token);

            _cts.Token.ThrowIfCancellationRequested();
            ScrollEnded?.Invoke(this, EventArgs.Empty);
        }
        catch
        {
        }
    }
Ejemplo n.º 2
0
 private void OnScrollEnded(object sender, EventArgs e)
 {
     ScrollEnded?.Invoke(this, e);
 }