Radzen Blazor组件

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

Github stars Tracking Chart

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.

Overview

Name With Ownerradzenhq/radzen-blazor
Primary LanguageC#
Program languageDockerfile (Language Count: 7)
PlatformDocker, Linux, Mac, Windows
License:MIT License
Release Count370
Last Release Namev4.29.8 (Posted on )
First Release Namev3.0.0 (Posted on )
Created At2019-02-07 10:46:19
Pushed At2024-04-19 14:28:33
Last Commit At2024-04-19 11:17:15
Stargazers Count3.2k
Watchers Count70
Fork Count720
Commits Count3.6k
Has Issues Enabled
Issues Count949
Issue Open Count89
Pull Requests Count402
Pull Requests Open Count2
Pull Requests Close Count119
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private
To the top