Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
AddTextNotePopup.cs
1using System.Threading.Tasks;
2
4{
8 public partial class AddTextNotePopup : BasePopup
9 {
10 private readonly AddTextNoteViewModel viewModel;
11
13 {
14 this.InitializeComponent();
15 this.viewModel = viewModel;
16 this.BindingContext = viewModel;
17 }
18
19 public override Task OnAppearingAsync()
20 {
21 this.NoteEntry.Focus();
22 return base.OnAppearingAsync();
23 }
24
25 public override Task OnDisappearingAsync()
26 {
27 this.viewModel.Close();
28 return base.OnDisappearingAsync();
29 }
30 }
31}
Compatibility wrapper so old Mopups based popups work using the new popup infrastructure.
Definition: BasePopup.cs:10
Prompts the user for text to add as a note for a token.
override Task OnDisappearingAsync()
Method called when view is disappearing from the screen.
override Task OnAppearingAsync()
Method called when view is appearing on the screen.
View model for popup page prompting the user for a text note to be added.