1using CommunityToolkit.Mvvm.ComponentModel;
2using CommunityToolkit.Mvvm.Input;
5using System.Collections.ObjectModel;
6using System.Diagnostics;
15 private readonly PhotosLoader photosLoader;
20 this.Photos =
new ObservableCollection<Photo>();
21 this.photosLoader =
new PhotosLoader(this.
Photos);
28 public ObservableCollection<Photo>
Photos {
get;
set; }
34 private bool isSwipeEnabled;
42 this.photosLoader.CancelLoadPhotos();
43 this.IsSwipeEnabled =
false;
45 _ = this.photosLoader.LoadPhotos(attachments,
SignWith.LatestApprovedIdOrCurrentKeys, () =>
47 MainThread.BeginInvokeOnMainThread(() => this.IsSwipeEnabled = this.Photos.Count > 1);
51 protected override Task OnPopAsync()
53 this.photosLoader.CancelLoadPhotos();
54 return base.OnPopAsync();
60 private async Task Cancel()
Base class that references services in the app.
static IPopupService PopupService
Popup service for presenting application popups.
Contains a reference to an attachment assigned to a legal object.
SignWith
Options on what keys to use when signing data.