1using CommunityToolkit.Mvvm.ComponentModel;
2using CommunityToolkit.Mvvm.Input;
5using System.Collections.ObjectModel;
14 private readonly PhotosLoader photosLoader;
20 this.photosLoader =
new PhotosLoader(this.
Photos);
25 public ObservableCollection<Photo>
Photos {
get; }
31 private bool isSwipeEnabled;
39 this.photosLoader.CancelLoadPhotos();
40 this.IsSwipeEnabled =
false;
42 _ = this.photosLoader.LoadPhotos(attachments,
SignWith.LatestApprovedIdOrCurrentKeys, () =>
44 MainThread.BeginInvokeOnMainThread(() => this.IsSwipeEnabled = this.Photos.Count > 1);
50 this.photosLoader.CancelLoadPhotos();
56 private async Task Cancel()
Base class that references services in the app.
static IUiService UiService
Service serializing and managing UI-related tasks.
Contains a reference to an attachment assigned to a legal object.
SignWith
Options on what keys to use when signing data.