-
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.
Merge pull request #2242 from unoplatform/dev/sb/itemspanel-markup
docs: add upgrading docs and itemspanel breaking changes
- Loading branch information
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