-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add upgrading docs and itemspanel braking changes
(cherry picked from commit d75ade5)
- Loading branch information
1 parent
bb08647
commit ed71dd6
Showing
4 changed files
with
38 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
uid: Uno.Extensions.Markup.Upgrading | ||
--- | ||
|
||
# Upgrading C# Markup | ||
|
||
## Changes in v5.2 | ||
|
||
### ItemsPanel Property | ||
|
||
The signature for the `ItemsPanel` property extension method has changed to a strongly typed generic method that accepts a delegate to configure the root element of the `ItemsPanelTemplate`. | ||
|
||
The `ItemsPanel` property extension method that previously looked like this: | ||
|
||
```cs | ||
new ListView() | ||
.ItemsPanel(() => new ItemsStackPanel() | ||
.Orientation(Orientation.Vertical)) | ||
``` | ||
|
||
Should now be updated to: | ||
|
||
```cs | ||
new ListView() | ||
.ItemsPanel<ItemsStackPanel>(panel => panel.Orientation(Orientation.Vertical)) | ||
``` | ||
|
||
To learn more about different types of templates in C# Markup, see the [Templates section](xref:Uno.Extensions.Markup.Templates). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters