Skip to content
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

HeaderedContentControl default theme missing #10918

Closed
dbriard opened this issue Apr 5, 2023 · 2 comments
Closed

HeaderedContentControl default theme missing #10918

dbriard opened this issue Apr 5, 2023 · 2 comments
Labels

Comments

@dbriard
Copy link
Contributor

dbriard commented Apr 5, 2023

Describe the bug
There is a default theme for ContentControl, but not for HeaderedContentControl.

To Reproduce

  1. Create a in XAML
  2. Nothing appear in the view, because there is no default theme.

Expected behavior
I would like to have a default theme for HeaderedContentControl that look like the Header of many controls in UWP (Slider, TextBox, etc...) so that I can quickly add Headers to Avalonia Controls out of the box without the need to create my own theme.

Ideally, the header should have normal and disabled state (Grayed Header foreground), TopHeaderMargin such as 0,0,0,8 by default, and might have a different Margin in case the content is a Slider (for example) if the default margin do not look good with Slider (just an example, I know that UWP may have different margin for special cases).

@dbriard dbriard added the bug label Apr 5, 2023
@rabbitism
Copy link
Contributor

I think this is discussed in #3913

@maxkatz6 maxkatz6 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 5, 2023
@dbriard
Copy link
Contributor Author

dbriard commented Apr 5, 2023

I think this is discussed in #3913

Yes, but with no explanation why this control do not have a template at all. It is not a problem in any way, but I just do not see any cons of adding a theme for that control that would look like headered control of WinUI/UWP or WPF.

As a user, that look strange the first time you add it in XAML and nothing happen. I had to look at the code of Fluent theme to figure out why... It is supposed to display the content with a header. It is really useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants