Uwn.Razor
9.1.3
dotnet add package Uwn.Razor --version 9.1.3
NuGet\Install-Package Uwn.Razor -Version 9.1.3
<PackageReference Include="Uwn.Razor" Version="9.1.3" />
<PackageVersion Include="Uwn.Razor" Version="9.1.3" />
<PackageReference Include="Uwn.Razor" />
paket add Uwn.Razor --version 9.1.3
#r "nuget: Uwn.Razor, 9.1.3"
#:package Uwn.Razor@9.1.3
#addin nuget:?package=Uwn.Razor&version=9.1.3
#tool nuget:?package=Uwn.Razor&version=9.1.3
Uwn.Razor
A Razor Class Library for re-usable components, and Bootstrap wrappers.
| Information | Value |
|---|---|
| Project Type | Razor Class Library |
| Framework | .NET 9.0 |
| Current Version | 9.1.3 |
| Author | Chris B. |
| Publisher | UltimateWisdom.Net |
| License | MIT License |
Documentation and examples can be found at:
https://razor-demo.ultimatewisdom.net/
BREAKING CHANGES from v9.1.*
- Property
Styleis now part ofAppearance - Property
DropShadowis now part ofDecorations, which is part ofAppearance - Properties
DelayandHasCloseButtonare now part ofDismissOptions - Most
Content/Textproperties have been changed to theContenttype, which includes an optional icon - Moved component
ExternalLinkfromBootstraptoCommon
Patch v9.1.1
- Fixed an error where fragments of
CardandModalDialogcould be rendered despiteIsVisible=false
New and Improved in v9.1.0
- Added ViewModels for all components
- Added Providers for (almost) all components - see below
- The
FragmentProviderclass is nowpublic, and provides methods for FontAwesome handling, and content formatting - The
roundedBootstrap CSS class is now available through theAppearance.Decorationsproperty - Text and Time elements of the
WaitIndicatornow have an individualideach, derived from theIdof theWaitIndicator - Added static class
IconNamesfor commonly used icon names - Added
OnDismissedcallback toModalDialog - Added
HeadertoAlert
9.1.1 Minor Bugfixes
9.1.2 Added Placement parameter to Providers; bugfixes
9.1.3 Added missing FontAwesome IconPacks and Styles
Component Providers
Component Providers have been added for almost all components (doing this for Tables and their sub-components makes no sense).
Providers allow you to cascade components, and access their view models in your embedded components.
For example, in your MainLayout.razor, you could do this:
<WaitIndicatorProvider>
<AlertProvider>
<CardProvider>
@Body
</CardProvider>
</AlertProvider>
</WaitIndicatorProvider>
And then do this in your own components:
<button type="button" @onclick="OnButtonClickAsync">Do something</button>
@code {
[CascadingParameter] public WaitIndicatorViewModel WaitIndicator { get; set; } = default!;
[CascadingParameter] public AlertViewModel Alert { get; set; } = default!;
[CascadingParameter] public CardViewModel Card { get; set; } = default!;
private async Task OnButtonClickAsync()
{
await WaitIndicator.ShowAsync();
try
{
await SomeActionAsync();
await Alert.ShowSuccessAsync("Success!");
}
catch (Exception ex)
{
await Card.ShowExceptionAsync(ex);
}
await WaitIndicator.HideAsync();
}
}
EOF
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- Microsoft.AspNetCore.Components.Web (>= 9.0.14)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.14)
- Uwn.Mvvm (>= 9.1.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Uwn.Razor:
| Package | Downloads |
|---|---|
|
Uwn.Razor.Common
UltimateWisdom.Net Common Razor Class Library |
GitHub repositories
This package is not used by any popular GitHub repositories.