Skip to content

Enable the ability to include default styles alongside Maui Controls #6350

@PureWeen

Description

@PureWeen

Currently there's not a reasonable way to package default styles inside Controls. If we try to add our own DefaultDictionary into Merged Dictionary it gets cleared out after InitalizeComponent is called.

At a later point I'll elaborate on the spec here but the ideal end goal here would be

  • The ability to package XAML based themes with Controls
  • The ability to define the concept of Defaults for controls stylings that feed from our themes.
  • We recently added default styles into our templates. Ideally we'd be able to feed our control defaults off these colors. We would have the same idea as "AccentColor" etc.. that would act as defaults for colors that users could define to achieve consistent theming

#6255

Metadata

Metadata

Labels

Taskneither bug nor feature but something that needs to be done in support of eitherarea-xamlXAML, CSS, Triggers, Behaviorspartner/ui-tools.NET UI Tools

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions