Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
PetitionSignaturePage.xaml.cs
5{
9 public partial class PetitionSignaturePage
10 {
15 {
16 this.InitializeComponent();
17 this.ContentPageModel = new PetitionSignatureViewModel(ServiceRef.UiService.PopLatestArgs<PetitionSignatureNavigationArgs>());
18 }
19
20 private void Image_Tapped(object? Sender, EventArgs e)
21 {
22 PetitionSignatureViewModel ViewModel = this.ViewModel<PetitionSignatureViewModel>();
23
24 Attachment[]? Attachments = ViewModel.RequestorIdentity?.Attachments;
25 if (Attachments is null)
26 return;
27
28 ImagesPopup imagesPopup = new();
29 ImagesViewModel imagesViewModel = new();
30 ServiceRef.UiService.PushAsync(imagesPopup, imagesViewModel);
31 imagesViewModel.LoadPhotos(Attachments);
32 }
33 }
34}
Base class that references services in the app.
Definition: ServiceRef.cs:31
static IUiService UiService
Service serializing and managing UI-related tasks.
Definition: ServiceRef.cs:55
Holds navigation parameters specific to views displaying a petition of a signature.
A page to display when the user is asked to petition a signature.
PetitionSignaturePage()
Creates a new instance of the PetitionSignaturePage class.
The view model to bind to when displaying petitioning of a signature in a view or page.
void LoadPhotos(Attachment[] attachments)
Loads the attachments photos, if there are any.
Contains a reference to an attachment assigned to a legal object.
Definition: Attachment.cs:9