Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
PetitionIdentityPage.xaml.cs
4
6{
10 public partial class PetitionIdentityPage
11 {
16 {
17 this.InitializeComponent();
18 this.ContentPageModel = new PetitionIdentityViewModel(ServiceRef.UiService.PopLatestArgs<PetitionIdentityNavigationArgs>());
19 }
20
22 protected override Task OnDisappearingAsync()
23 {
24 return base.OnDisappearingAsync();
25 }
26
27 private void Image_Tapped(object? Sender, EventArgs e)
28 {
29 PetitionIdentityViewModel ViewModel = this.ViewModel<PetitionIdentityViewModel>();
30
31 Attachment[]? Attachments = ViewModel.RequestorIdentity?.Attachments;
32 if (Attachments is null)
33 return;
34
35 ImagesPopup imagesPopup = new();
36 ImagesViewModel imagesViewModel = new();
37 ServiceRef.UiService.PushAsync(imagesPopup, imagesViewModel);
38 imagesViewModel.LoadPhotos(Attachments);
39 }
40 }
41}
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
A page to display when the user is asked to petition an identity.
PetitionIdentityPage()
Creates a new instance of the PetitionIdentityPage class.
The view model to bind to when displaying petitioning of an identity 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