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
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
Open the _Imports.razor file of your Blazor application and add this line @using Radzen.Blazor.
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">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>Use any Radzen Blazor component by typing its tag name in a Blazor page e.g.
<RadzenButton Text="Hi"></RadzenButton><RadzenButton Text=@text />
<RadzenTextBox @bind-Value=@text />
@code {
string text = "Hi";
}<RadzenButton Click="@ButtonClicked" Text="Hi"></RadzenButton>
@code {
void ButtonClicked()
{
}
}A set of 70+ free and open source native Blazor UI controls.
