FmgLib.MauiMarkup Documentation

FmgLib.MauiMarkup

  • Welcome to FmgLib.MauiMarkup
  • Getting Started
  • XAML to FmgLib.MauiMarkup(C#)
  • How to Assign Object References
  • Attached Properties
  • Behaviors
  • Binding Converters
  • Event Handlers
  • Gesture Recognizers
  • Gradients
  • Grid Definition
  • ITextAlignment Interface Extension Methods
  • Layout Options
  • Menus in FmgLib.MauiMarkup
  • Properties and Fluent Methods
  • Property Bindings
  • Property MultiBinding
  • Shell Application
  • Application Styling
  • User Defined Extension Methods
  • Triggers
  • .NET Built-in Hot Reload (Visual Studio)
  • Extensions for 3rd Party Controls
  • Localization JSON File
  • Localization RESX File
  • Compiled Binding in Code
  • General Example Code

How to Assign Object References

Version: v9.x
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);
XAML to FmgLib.MauiMarkup(C#) Attached Properties

© 2025 - All rights reserved by FmgLib.