-
I want to change the background color of
Unfortunately, this doesn't work, it causes app to crash: Exception thrown: 'System.ArgumentException' in WinRT.Runtime.dll The equivalent Code in XAML would be:
BTW: modifying How do I realize it in C# Markup? See attached uno project that reproduces this issue: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thanks @kucint this would actually be the result of a bug we recently discovered. The team is currently working to resolve it. The fix should be in the 5.2 release. Note that to properly fix this we will need to make a breaking change that is specific to the ItemsPanelTemplate. The updated code will look something like this: new ItemsControl()
.ItemsPanel<Canvas>(canvas => canvas
.Width(250)
.Height(250)
.Background(Colors.Blue)) cc: @kazo0 @eriklimakc @vatsashah45 |
Beta Was this translation helpful? Give feedback.
Thanks @kucint this would actually be the result of a bug we recently discovered. The team is currently working to resolve it. The fix should be in the 5.2 release. Note that to properly fix this we will need to make a breaking change that is specific to the ItemsPanelTemplate. The updated code will look something like this:
cc: @kazo0 @eriklimakc @vatsashah45