Table of Contents

Class KeyboardBindingExtension

Namespace
Nalu
Assembly
Nalu.Maui.Scaffold.dll

Binds to the ambient ScaffoldKeyboardState from anywhere inside the scaffold's element tree — pages, sheet/popup content, chrome: IsVisible="{nalu:KeyboardBinding IsVisible, Converter={StaticResource InvertedBool}}", HeightRequest="{nalu:KeyboardBinding Height}".

[ContentProperty("Path")]
[AcceptEmptyServiceProvider]
public sealed class KeyboardBindingExtension : IMarkupExtension<BindingBase>, IMarkupExtension
Inheritance
KeyboardBindingExtension
Implements
Inherited Members

Remarks

Resolves through the nearest ancestor Scaffold, so it only binds while the target is attached to the scaffold's tree. The path is evaluated by reflection (not compiled) — the reflected surface is preserved under trimming.

Properties

Converter

Gets or sets the converter.

public IValueConverter? Converter { get; set; }

Property Value

IValueConverter

ConverterParameter

Gets or sets the converter parameter.

public object? ConverterParameter { get; set; }

Property Value

object

Mode

Gets or sets the binding mode.

public BindingMode Mode { get; set; }

Property Value

BindingMode

Path

Gets or sets the path within the ScaffoldKeyboardState ('.', the default, binds the state object itself).

public string Path { get; set; }

Property Value

string

StringFormat

Gets or sets the string format.

public string? StringFormat { get; set; }

Property Value

string

Methods

ProvideValue(IServiceProvider)

public BindingBase ProvideValue(IServiceProvider serviceProvider)

Parameters

serviceProvider IServiceProvider

Returns

BindingBase