.NET Built-in Hot Reload (Visual Studio)

Version: v9.x

Additionally, the FmgLib.MauiMarkup library includes hot reload support to make the development process faster and more efficient.

If you want to enhance your page with fast reload, your page needs to implement the IFmgLibHotReload interface. Then, you should trigger the this.InitializeHotReload(); function within the constructor.

And you can write your design code inside the Build() method to enhance it with fast reload.

Example usage is as follows:

public partial class ExamplePage : ContentPage, IFmgLibHotReload
{
    public ExamplePage()
    {
        this.InitializeHotReload();
    }
    public void Build()
    {
        this
        .Content(
            new Label()
            .Text("FmgLib.MauiMarkup")
            .CharacterSpacing(2)
            .FontSize(30)
            .FontAttributes(Italic)
            .TextColor(Green)
            .TextCenter()
        );
    }
}