Custom.Radzen.Blazor
4.3.6
dotnet add package Custom.Radzen.Blazor --version 4.3.6
NuGet\Install-Package Custom.Radzen.Blazor -Version 4.3.6
<PackageReference Include="Custom.Radzen.Blazor" Version="4.3.6" />
paket add Custom.Radzen.Blazor --version 4.3.6
#r "nuget: Custom.Radzen.Blazor, 4.3.6"
// Install Custom.Radzen.Blazor as a Cake Addin #addin nuget:?package=Custom.Radzen.Blazor&version=4.3.6 // Install Custom.Radzen.Blazor as a Cake Tool #tool nuget:?package=Custom.Radzen.Blazor&version=4.3.6
About Custom.Radzen.Blazor
This is extended version of the Radzen.Blazor library with custom functions added and original functionality preserved
Currently following components have been extended(how to use - see RadzenBlazorDemos project):
- GoogleMap (custom icons for every marker, custom draggable cursor icon, rendering fixed)
Added static src/href links for js, css resources
Get started
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 Custom.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
- 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.
- Include the theme CSS file in your Blazor application. Open
Pages\_Layout.cshtml
(Blazor Server .NET 6+),Pages\_Host.cshtml
(Blazor Server before .NET 6) orwwwroot/index.html
(Blazor WebAssembly) and include the CSS file of a theme CSS file by adding this snippet<link rel="stylesheet" href="@RadzenResources.CssMaterialBase">
To include a different theme (i.e. Standard) just change the name of the CSS file:
<link rel="stylesheet" href="@RadzenResources.CssStandartBase">
4. Include Radzen.Blazor.js
Open Pages\_Layout.cshtml
(Blazor Server .NET 6+), Pages\_Host.cshtml
(Blazor Server before .NET 6) or wwwroot/index.html
(Blazor WebAssembly) and include this snippet:
<script src="@RadzenResources.JsContent"></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()
{
}
}
About original Radzen.Blazor
<h1 align="center"> Radzen Blazor Components </h1>
<p align="center"> A set of <strong>70+ free and open source</strong> native Blazor UI controls. </p>
<div align="center">
See Online Demos or Read the Docs
</div>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net5.0
- LibSassBuilder (>= 2.0.1)
- Microsoft.AspNetCore.Components (>= 5.0.0)
- Microsoft.AspNetCore.Components.Web (>= 5.0.0)
- Microsoft.CSharp (>= 4.7.0)
- System.Linq.Dynamic.Core (>= 1.2.22)
-
net6.0
- LibSassBuilder (>= 2.0.1)
- Microsoft.AspNetCore.Components (>= 6.0.0)
- Microsoft.AspNetCore.Components.Web (>= 6.0.0)
- Microsoft.CSharp (>= 4.7.0)
- System.Linq.Dynamic.Core (>= 1.2.22)
-
net7.0
- LibSassBuilder (>= 2.0.1)
- Microsoft.AspNetCore.Components (>= 7.0.0)
- Microsoft.AspNetCore.Components.Web (>= 7.0.0)
- Microsoft.CSharp (>= 4.7.0)
- System.Linq.Dynamic.Core (>= 1.2.22)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.