Skip to content

Commit

Permalink
Merge pull request #1392 from unoplatform/dev/sb/docs-fixes
Browse files Browse the repository at this point in the history
docs: refactor upgrade doc mentions
  • Loading branch information
agneszitte authored Apr 16, 2024
2 parents 8db9974 + 37f4df4 commit 34aa649
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
10 changes: 4 additions & 6 deletions doc/material-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@
uid: Uno.Themes.Material.Migration
---

# Upgrading Uno.Material
# Upgrading Uno Material

## Upgrading to Uno Themes v5.0
## Upgrading to Uno Themes v5

Version 5.0.0 of Uno Themes introduces breaking changes to the library. Below are the changes that have been made:
The Uno Material v5 packages introduce a new dependency on the [Uno Themes](https://www.nuget.org/packages/Uno.Themes.WinUI) package. Uno Themes is the base library for all design system implementations going forward. As a result, the following changes have been made:

### Converters

All Converters were moved to the `Uno.Themes` library, and the new `namespace` is `Uno.Themes`.
All Converters were moved to the base `Uno.Themes` library, and the new `namespace` is `Uno.Themes`.

Before:

```xml
<Page xmlns:um="using:Uno.Material">

<Page.Resources>
<um:FromNullToValueConverter x:Key="NotNullVisibilityConverter">
</Page.Resources>
Expand All @@ -27,7 +26,6 @@ After:

```xml
<Page xmlns:ut="using:Uno.Themes">

<Page.Resources>
<ut:FromNullToValueConverter x:Key="NotNullVisibilityConverter">
</Page.Resources>
Expand Down
8 changes: 0 additions & 8 deletions doc/themes-control-extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@ uid: Uno.Themes.Control.Extensions

# Control Extensions

Starting on version 5.0.0 the `ControlExtensions` are available on the `Uno.Themes` namespace, so to use that in xaml you should add the following xmlns to your project:

`xmlns:ut="using:Uno.Themes"`

> [!INFO]
> For more information about see our [migration docs](material-migration.md).
## Icon

This feature allows for the addition of icon on the supported controls. Those icons could be any of the [`IconElement`](https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.iconelement)s: `<BitmapIcon />`, `<FontIcon />`, `<PathIcon />`, or `<SymbolIcon />`.
Expand Down Expand Up @@ -114,4 +107,3 @@ The following control styles have support for elevation:
| Control | Supporting Styles |
|----------|-----------------------|
| `Button` | `ElevatedButtonStyle` |
|----------|-----------------------|

0 comments on commit 34aa649

Please sign in to comment.