Please bring the ability of themes to winforms every other platform has it but WinForms.
We should be able to set the theme on startup and change it on the fly with a listener.
Should be something like this
services.configure(themeName);
This would then look in resources.resx for dark or light theme pallets. That could be used to style the entire application for example
DarkControlColor
There should also be some way of getting the value from here as some sort of enumeration query able. And be able to retrive the system colours once selected. Making it that the above is not necessary with the resources.
For example an eternal enum that would pick up any custom themes the user has created.
public enum AppThemeEnum
{
Unspecified,
Light,
Dark,
UserTheme
}
Detect & Change User Interface Style
DeviceInfo
API
DESCRIPTION
AppTheme CurrentAppTheme
What is the actual theme
AppTheme.ApplyTheme
This can be called from the this.ApplyTheme maybe they don't want all forms to be theme.
The theme should also allow us to implement rounded corner where we could set a radius of the corner in what ever dpi the user wanted. Be it inches pixels cm mm.
Already
While this is implemented for xamrain it would give a clear conception of what is expected for the winforms flavour.
Please bring the ability of themes to winforms every other platform has it but WinForms.
We should be able to set the theme on startup and change it on the fly with a listener.
Should be something like this
This would then look in resources.resx for dark or light theme pallets. That could be used to style the entire application for example
There should also be some way of getting the value from here as some sort of enumeration query able. And be able to retrive the system colours once selected. Making it that the above is not necessary with the resources.
For example an eternal enum that would pick up any custom themes the user has created.
Detect & Change User Interface Style
DeviceInfo
The theme should also allow us to implement rounded corner where we could set a radius of the corner in what ever dpi the user wanted. Be it inches pixels cm mm.
Already
While this is implemented for xamrain it would give a clear conception of what is expected for the winforms flavour.
xamarin/Essentials#927
VisualElement
AppThemeChanged Event
To Apply the theme on a form one could or one could have a class derived from form for example
Resources could be based off Colours per app theme
Theme.AppTheme =AppThemeEnum.Dark
Availability
This should go into .net core,5 and 6.
The text was updated successfully, but these errors were encountered: