Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
HideKeyboardOnCompletedBehavior.cs
3
5{
9 public class HideKeyboardOnCompletedBehavior : Behavior<CompositeEntry>
10 {
12 protected override void OnAttachedTo(CompositeEntry entry)
13 {
14 entry.Completed += this.Entry_Completed;
15 base.OnAttachedTo(entry);
16 }
17
19 protected override void OnDetachingFrom(CompositeEntry entry)
20 {
21 entry.Completed -= this.Entry_Completed;
22 base.OnDetachingFrom(entry);
23 }
24
25 private void Entry_Completed(object? Sender, EventArgs e)
26 {
27 ServiceRef.PlatformSpecific.HideKeyboard();
28 }
29 }
30}
Base class that references services in the app.
Definition: ServiceRef.cs:31
Used for hiding keyboard once the user hits the Enter or Return key.