Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ViewIdentityPage.xaml.cs
4
6{
10 public partial class ViewIdentityPage
11 {
16 {
17 this.InitializeComponent();
18 this.ContentPageModel = new ViewIdentityViewModel(ServiceRef.UiService.PopLatestArgs<ViewIdentityNavigationArgs>());
19 }
20
22 protected override Task OnDisappearingAsync()
23 {
25 return base.OnDisappearingAsync();
26 }
27
28 private void Image_Tapped(object? Sender, EventArgs e)
29 {
30 ViewIdentityViewModel ViewModel = this.ViewModel<ViewIdentityViewModel>();
31
32 Attachment[]? Attachments = ViewModel.LegalIdentity?.Attachments;
33 if (Attachments is null)
34 return;
35
39 ImagesViewModel.LoadPhotos(Attachments);
40 }
41 }
42}
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 wants to view an identity.
ViewIdentityPage()
Creates a new instance of the ViewIdentityPage class.
The view model to bind to for when displaying identities.
LegalIdentity? LegalIdentity
The full legal identity of the identity
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