Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
KeyboardInsets.cs
1using System;
2using Microsoft.Maui.Controls;
4
5namespace NeuroAccessMaui.UI
6{
11 {
15 Automatic,
16
20 Manual,
21
25 Ignore
26 }
27
31 public interface IKeyboardInsetAware
32 {
38 }
39
43 public static class KeyboardInsets
44 {
48 public static readonly BindableProperty ModeProperty =
49 BindableProperty.CreateAttached(
50 "Mode",
51 typeof(KeyboardInsetMode),
52 typeof(KeyboardInsets),
53 KeyboardInsetMode.Automatic);
54
60 public static KeyboardInsetMode GetMode(BindableObject view)
61 {
62 ArgumentNullException.ThrowIfNull(view);
63 return (KeyboardInsetMode)view.GetValue(ModeProperty);
64 }
65
71 public static void SetMode(BindableObject view, KeyboardInsetMode value)
72 {
73 ArgumentNullException.ThrowIfNull(view);
74 view.SetValue(ModeProperty, value);
75 }
76 }
77}
Event data describing an update to the keyboard inset height.
Attached properties for configuring keyboard inset handling on views.
static void SetMode(BindableObject view, KeyboardInsetMode value)
Sets the KeyboardInsetMode for the provided view.
static readonly BindableProperty ModeProperty
Identifies the KeyboardInsetMode attached property.
static KeyboardInsetMode GetMode(BindableObject view)
Gets the KeyboardInsetMode value for the provided view.
Represents a component that consumes keyboard inset updates manually.
void OnKeyboardInsetChanged(KeyboardInsetChangedEventArgs args)
Called when the keyboard inset changes.
KeyboardInsetMode
Specifies how keyboard insets should be applied to a view.