Local-mode composition root (SQLite index, one JobEngine fed by a single handler registration list), keyset-paged library with thumbnail cache and hover scrub, live job list with throttled updates and the shell job bar, settings with live template validation and encoder self-test, server connection with trust-on-first-use and DPAPI token, first-run welcome, About with update check, and --capture screenshots with synthetic data. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
16 lines
577 B
C#
16 lines
577 B
C#
using System.Windows.Controls;
|
|
|
|
namespace Titano.App.Sections;
|
|
|
|
public partial class LibraryView : UserControl
|
|
{
|
|
public LibraryView() => InitializeComponent();
|
|
|
|
/// <summary>Loads the next page when the grid or the list scrolls within two screens of its end.</summary>
|
|
private void OnScrollChanged(object sender, ScrollChangedEventArgs e)
|
|
{
|
|
if (DataContext is not LibraryViewModel vm || e.ExtentHeight <= 0) return;
|
|
if (e.VerticalOffset + e.ViewportHeight >= e.ExtentHeight - 2 * Math.Max(e.ViewportHeight, 200)) _ = vm.LoadMoreAsync();
|
|
}
|
|
}
|