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.NavigationService.PopLatestArgs<PetitionIdentityNavigationArgs>());
19 }
20
22 public 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
36 ImagesViewModel ImagesViewModel = new(Attachments);
37 ImagesPopup.BindingContext = ImagesViewModel;
39 //imagesViewModel.LoadPhotos(Attachments);
40 }
41 }
42}
Base class that references services in the app.
Definition: ServiceRef.cs:43
static INavigationService NavigationService
The navigation service for navigating between pages.
Definition: ServiceRef.cs:178
static IPopupService PopupService
Popup service for presenting application popups.
Definition: ServiceRef.cs:142
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.
Contains a reference to an attachment assigned to a legal object.
Definition: Attachment.cs:10