Replies: 4 comments 14 replies
-
Here's an example from the Microsoft documentation: <Page
xmlns:media="using:Microsoft.UI.Xaml.Media">
<Rectangle Width="200" Height="200">
<Rectangle.Fill>
<media:RadialGradientBrush>
<GradientStop Color="Blue" Offset="0.0" />
<GradientStop Color="Yellow" Offset="0.2" />
<GradientStop Color="LimeGreen" Offset="0.4" />
<GradientStop Color="LightBlue" Offset="0.6" />
<GradientStop Color="Blue" Offset="0.8" />
<GradientStop Color="LightGray" Offset="1" />
</media:RadialGradientBrush>
</Rectangle.Fill>
</Rectangle>
</Page> |
Beta Was this translation helpful? Give feedback.
-
The objective of using Uno Platform is to work across all Platforms with one code. If we are only talking about UWP, then it doesn’t make any sense to use Uno Platform. I have written many applications (UWP) where I am using Win2D and without Win2D namespace support of RadialGradientBrush is absent. Microsoft wants to bring Win2D with UWP because RadialGradientBrush is available natively. I just realized if I add Win2D none of Platform will work. I requested a sample (A circle or rectangle) where RadialGradientBrush is available across all Platforms. Indeed, if RadialGradientBrush is available across all Platforms then it must be one line code. Can you provide few lines of code about RadialGradientBrush which should work all Platforms? |
Beta Was this translation helpful? Give feedback.
-
OctagonApp.zip Your application will not compile for any Platform if you add Win2D in your application. |
Beta Was this translation helpful? Give feedback.
-
Current behavior
My Uno library works fine until I add RadialGradientBrush to my project. To resolve this problem, I installed Microsoft.UI.Xaml package, which broke all the packages monoandroid10.0, MonoAndroid11.0, xamarinios10, and xamarinmac20. What is the solution to add RadialGradientBrush, and should it work on all platforms?
I am Microsoft Visual Studio Professional 2019 Version 16.11.2
Expected behavior
It should work on all platforms.
How to reproduce it (as minimally and precisely as possible)
I visited https://playground.platform.uno and add RadialGradientBrush as a Resource, but unable to find
SimpleExample
Workaround
No response
Works on UWP/WinUI
No response
Environment
No response
NuGet package version(s)
No response
Affected platforms
No response
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
Beta Was this translation helpful? Give feedback.
All reactions