Radzen Blazor组件

Radzen Blazor 组件之家。「The home of the Radzen Blazor components.」

Github星跟蹤圖

Radzen Blazor Components

See Online Demos or Read the Docs


Why choose Radzen Blazor Components?

:sparkles: Free

Radzen Blazor Components are open source and free for commercial use. You can install them from NuGet or build your own copy from source.

Paid support is available as part of the Radzen Professional subscription.

:computer: Native

The components are implemented in C# and take full advantage of the Blazor framework. They do not depend on or wrap existing JavaScript frameworks or libraries.

Blazor Server and Blazor WebAssembly are fully supported.

:seedling: Growing

We add new components and features on a regular basis.

Short development cycle. We release as soon as new stuff is available. No more quarterly releases.

Support exceeding your expectations

:speech_balloon: Community Support

Everybody is welcome to visit the Radzen Community forum. Join the growing community and participate in the discussions!

:dart: Dedicated Support

The Radzen team monitors the forum threads, but does not guarantee a response to every question. For guaranteed responses you may consider the dedicated support option.

Dedicated support for the Radzen Blazor Components is available as part of the Radzen Professional subscription.

Our flagship product Radzen Blazor Studio provides tons of productivity features for Blazor developers:

  • An industry-leading WYSIWYG Blazor design time canvas
  • Scaffolding a complete CRUD applications from a database
  • Built-in security - authentication and authorization
  • Visual Studio Code and Professional support
  • Deployment to IIS and Azure
  • Dedicated support with 24 hour guaranteed response time

Get started with Radzen Blazor Components

1. Install

Radzen Blazor Components are distributed as a Radzen.Blazor NuGet package. You can add them to your project in one of the following ways

  • Install the package from command line by running dotnet add package Radzen.Blazor
  • Add the project from the Visual NuGet Package Manager
  • Manually edit the .csproj file and add a project reference

2. Import the namespace

Open the _Imports.razor file of your Blazor application and add this line @using Radzen.Blazor.

3. Include a theme

Radzen Blazor components come with five free themes: Material, Standard, Default, Dark, Software and Humanistic.

To use a theme

  1. Pick a theme. The online demos allow you to preview the available options via the theme dropdown located in the header. The Material theme is currently selected by default.
  2. Include the theme CSS file in your Blazor application. Open Pages\_Layout.cshtml (Blazor Server .NET 6), Pages\_Host.cshtml (Blazor Server .NET 7) or wwwroot/index.html (Blazor WebAssembly) and include a theme CSS file by adding this snippet
    <link rel="stylesheet" href="_content/Radzen.Blazor/css/material-base.css">
    

To include a different theme (i.e. Standard) just change the name of the CSS file:

<link rel="stylesheet" href="_content/Radzen.Blazor/css/standard-base.css">

4. Include Radzen.Blazor.js

Open Pages\_Layout.cshtml (Blazor Server .NET 6), Pages\_Host.cshtml (Blazor Server .NET 7) or wwwroot/index.html (Blazor WebAssembly) and include this snippet:

<script src="_content/Radzen.Blazor/Radzen.Blazor.js"></script>

5. Use a component

Use any Radzen Blazor component by typing its tag name in a Blazor page e.g.

<RadzenButton Text="Hi"></RadzenButton>

Data-binding a property

<RadzenButton Text=@text />
<RadzenTextBox @bind-Value=@text />
@code {
  string text = "Hi";
}

Handing events

<RadzenButton Click="@ButtonClicked" Text="Hi"></RadzenButton>
@code {
  void ButtonClicked()
  {

  }
}

Run demos locally

Use Radzen.Server.sln to open and run demos as Blazor server application or Radzen.WebAssembly.sln to open and run demos as Blazor WebAssembly application. Radzen.sln has reference to all projects including tests.

概覽

名稱與所有者radzenhq/radzen-blazor
主編程語言C#
編程語言Dockerfile (語言數: 7)
平台Docker, Linux, Mac, Windows
許可證MIT License
發布數377
最新版本名稱v4.31.1 (發布於 )
第一版名稱v3.0.0 (發布於 )
創建於2019-02-07 10:46:19
推送於2024-05-03 14:45:55
最后一次提交2024-05-03 15:45:55
星數3.2k
關注者數70
派生數724
提交數3.6k
已啟用問題?
問題數969
打開的問題數89
拉請求數407
打開的拉請求數0
關閉的拉請求數121
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?
去到頂部