Category

Blazor

Blazor Framework, Component Development and Project Practice

65 篇文章
6 当前页
(11/30) Let's learn Blazor together: Arbitral attributes

(11/30) Let's learn Blazor together: Arbitral attributes

Currently, MyButton has 3 [Parameters]. If you add them, a new [Parameter] will have to be defined. In order to avoid constantly updating this Component, we use the '@attribute' provided by Blazor.

StrayaWorker 12/15/2021 10:53 PM
(9/30) Everyone learns Blazor together: Parameters

(9/30) Everyone learns Blazor together: Parameters

If we want to add a button to clear the data of the form, the fastest way is to add a button with the name "reset". At this time, two buttons will be used, and we can use Blazor's core concept: component encapsulation.

StrayaWorker 12/14/2021 10:18 PM
(7/30) Everyone learns Blazor together: Lifetime

(7/30) Everyone learns Blazor together: Lifetime

All services you create must be registered with Startup.cs (Blazor Server) or Program.cs (Blazor WebAssemlby), but you don't have to do some basic services yourself.

StrayaWorker 12/13/2021 9:38 PM
10 ways to create maintainable and testable Windows Forms applications

10 ways to create maintainable and testable Windows Forms applications

Most of the Windows Forms applications I encounter do not exist or have extremely low unit test coverage. And they are often difficult to maintain, with hundreds or even thousands of lines of code behind the various Form classes in the project, but it doesn't have to be.

Mark Heath 12/10/2021 11:51 PM