-
Notifications
You must be signed in to change notification settings - Fork 688
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Brushes and Colors Implementation Missing ??? #3038
Comments
The equivalent does exist in UWP. However, the namespace was moved to Windows.UI.Colors in UWP and again to Microsoft.UI.Colors in WinUI. Also, you might find this useful porting from WPF: https://github.com/robloo/PublicDocs/blob/master/UWPvsWPF.md |
I should add while all Colors should be supported, some Brushes are not. Some like VisualBrush are still missing and features like tiling are more difficult #536 |
@VijayanRamachandran given Robloo's correct response, can you clarify what wpf feature you are missing? |
I overlooked about Colors. Similar like Colors in Microsoft.UI, i was talking about whether Brushes is also available in WinUI in my initial query. Thanks. |
For brushes you need to use the constructor: new SolidColorBrush(Colors.Red) In markup you can use all the same values (ex 'red' or '#FF0000'), whether the property is a Brush or Color type. |
As you mentioned for brushes i will use the constructor and check it. Thanks. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment. |
Hi,
I am currently doing some prototypes migrating custom controls available in our end from WPF to WinUI.
During prototype I noticed that, in our end there are some WPF custom controls using Brushes and Colors( available in System.Windows.Media ) but equivalent implementation for WinUI is missing.
These implementations will be available soon in near WinUI Preview release ?
I am using right now
VS => Version 16.7.0 Preview 5.0
.Net SDK => dotnet-sdk-5.0.100-preview.4.20268.1-win-x64 / dotnet-sdk-5.0.100-preview.4.20268.1-win-x86
Thanks in advance.
The text was updated successfully, but these errors were encountered: