Upgrading
What changes for an application when it moves to a new Tharga.Blazor version, and what, if anything, it has to do.
2.4: Radzen.Blazor 12
Tharga.Blazor 2.4 moves from Radzen.Blazor 11 to Radzen.Blazor 12.
Tharga.Blazor's own API is unchanged
Every Radzen type that appears in Tharga.Blazor's parameters (Variant, ButtonSize,
ButtonStyle, Shade and ProgressBarCircularSize) has the same values in Radzen 12, and every
Radzen component Tharga.Blazor renders has the same parameters. Radzen 12 needs no new service
registration, script or stylesheet: AddRadzenComponents(), <RadzenComponents /> and the theme
references stay as they are.
What can still reach your application
A direct Radzen.Blazor reference below 12. Restore fails with
NU1605(detected package downgrade), because Tharga.Blazor now needs 12. Raise your reference to 12.x, or remove it and use the version Tharga.Blazor brings.Changed defaults in Radzen components you use yourself. Radzen 12 changed behaviour, not signatures, so these compile unchanged but can look different:
RadzenDatePickernavigates by drilling down from the calendar title instead of showing month and year drop-downs.NavigationMode="DatePickerNavigationMode.DropDown"restores the old look.RadzenChartcolumn, bar and area series include zero on the value axis, line series with only negative values fit their data, value axes choose their tick step from the data, and an axis that sets onlyMinor onlyMaxrounds the other end to a tick.RangeandSteponRadzenValueAxis, or setting bothMinandMax, restore the old axes.RadzenChartcategory labels that do not fit are rotated, skipped or shortened.LabelFit="CategoryAxisLabelFit.None"onRadzenCategoryAxisrestores the old labels.RadzenDataGridsaves enum filter values in its settings as numbers. Settings saved before still load.- Applications published with trimming see analyzer warnings where they call Radzen's dynamic LINQ API directly.
The full list is in the Radzen.Blazor 12.0.0 release notes.
Blazored.LocalStorage
ExpandableCard no longer uses Blazored.LocalStorage: it calls the browser's localStorage
directly. It reads and writes the same keys, ExpandableCard.{key}.Selected, in the same format, so
the state a user left a card in survives the upgrade.
AddThargaBlazor still registers Blazored's ILocalStorageService, so an application that injects
it keeps working. That registration is deprecated and will be removed in a future major version,
together with the package reference. If your application injects ILocalStorageService, add a
reference to Blazored.LocalStorage and call AddBlazoredLocalStorage() yourself now; registering it
twice is harmless.