Blog

Technical Articles

This section contains site articles covering .NET, desktop development, engineering practice, and general development topics.

First Visit

New User Starting Route

Random Exploration

Random Discovery

Blazor Open Source Component Library - Masa Blazor

Blazor Open Source Component Library - Masa Blazor

Blazor allows you to build interactive web UI using C# instead of JavaScript. Blazor apps are composed of reusable web UI components implemented using C#, HTML, and CSS. Both client and server code are written in C#, allowing you to share code and libraries.

12/16/2021 MASA Blazor Blazor
(11/30)Learning Blazor Together: Arbitrary Attributes

(11/30)Learning Blazor Together: Arbitrary Attributes

Currently `MyButton` has 3 `[Parameter]`s. If we need to add more, we would have to define new `[Parameter]`s again. To avoid constantly updating this Component, let's use Blazor's `@attribute`.

12/15/2021 StrayaWorker Blazor
(9/30) Learning Blazor Together: Parameters

(9/30) Learning Blazor Together: Parameters

If we want to add a button to clear the `form` data, the fastest way is to add a `type=”reset”` button. At this point, we use two buttons, which can utilize the core concept of Blazor: component encapsulation.

12/14/2021 StrayaWorker Blazor
(7/30) Learn Blazor Together: Lifecycle (Lifetime)

(7/30) Learn Blazor Together: Lifecycle (Lifetime)

Services you create yourself must be registered in Startup.cs (Blazor Server) or Program.cs (Blazor WebAssemlby), but some basic services don't need to be created by yourself.

12/13/2021 StrayaWorker Blazor