UIElementExtensions.Elevation
breaks VS designer
#5513
Labels
difficulty/starter 🚀
Categorizes an issue for which the difficulty level is reachable by newcomers
kind/bug
Something isn't working
triage/potentially-fixed
Categorizes an issue as potentially fixed by some unlinked PR, fix needs to be verified
Current behavior
When setting
UIElementExtensions.Elevation
attached property for an element, the Visual Studio designer shows an error, but it compiles fine and works fine in a running app.Expected behavior
The VS designer must show the rendered XAML.
How to reproduce it (as minimally and precisely as possible)
App4.zip
Set
Elevation
, build the UWP project, see the error in the VS designer.Workaround
Set
UIElementExtensions.Elevation
via code-behind or don't use it at all.Environment
Nuget Package:
Nuget Package Version(s):
Affected platform(s):
IDE:
Relevant plugins:
Anything else we need to know?
To fix this, just remove
this
inthis UIElement element
. VS doesn't like these are extension methods.uno/src/Uno.UI.Toolkit/UIElementExtensions.cs
Line 30 in a6bb7ec
uno/src/Uno.UI.Toolkit/UIElementExtensions.cs
Line 35 in a6bb7ec
The text was updated successfully, but these errors were encountered: