How to Assign Object References
Version:
v9.x
How to Assign Object References
There are two main ways to assign objects in FmgLib.MauiMarkup
:
- using the
Assign
method,
The first example uses the Assign
method to assign a label object to a variable named label. This is done using the following code:
new Label().Assign(out var label);
new Entry().Assign(out var entry);
Or
Button btnOk;
new Button()
.Assign(out btnOk);