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

Default styling for controls does not work! #17414

Open
mobynet1 opened this issue Sep 15, 2023 · 5 comments
Open

Default styling for controls does not work! #17414

mobynet1 opened this issue Sep 15, 2023 · 5 comments
Labels
area-controls-flyoutpage FlyoutPage area-xaml XAML, CSS, Triggers, Behaviors platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@mobynet1
Copy link

mobynet1 commented Sep 15, 2023

Description

By default, I mean that I have completely turned off styling by not loading the Styles.xaml and Colors.xaml in App.xaml. Supposedly with ALL styling left to the defaults of the controls, some defaults are being set that should not be. Case in point, where is the corner radius coming from in the flyout menu?

image

I had also opened an issue, There is no way to set the text color of a Switch control #8965, a long time ago and @jfversluis unilaterally closed the issue by telling me to go write some platform-specific code. This is truly a poor way to run things. When customers open issues, it is not acceptable to simply close them because MS doesn't want to do something. I have ranted MANY times that you guys thought that the xamarin rewrite would satisfy everyone, but you have screwed the desktop community completely. Why can't a Switch control be styled?

So, some controls have styling that cannot be overcome without a TON of work on the customer's behalf. We, the customers, are under tight enough deadlines as it is to make this stuff work without having to resort to billions of lines of platform-specific code to make things work. If that were the case, who needs MAUI??????? EVERYTHING WAS EASILY STYLABLE IN WPF!!!

Steps to Reproduce

  1. Create new unmodified Maui app
  2. Comment out the loading of Colors and Styles:
<ResourceDictionary.MergedDictionaries>
    <!--<ResourceDictionary Source="Resources/Styles/Colors.xaml" />
    <ResourceDictionary Source="Resources/Styles/Styles.xaml" />-->
</ResourceDictionary.MergedDictionaries>
  1. Set FlyoutBehavior="Flyout"
  2. Run this VERY simple app...

Link to public reproduction project repository

No response

Version with bug

7.0.92

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

net7.0-windows10.0.19041.0

Did you find any workaround?

Nooooooooooooooooooooooooo

Relevant log output

No response

@mobynet1 mobynet1 added the t/bug Something isn't working label Sep 15, 2023
@mobynet1 mobynet1 changed the title Default stylings for controls does not work! Default styling for controls does not work! Sep 15, 2023
@jsuarezruiz jsuarezruiz added the area-xaml XAML, CSS, Triggers, Behaviors label Sep 18, 2023
@jsuarezruiz jsuarezruiz added this to the Backlog milestone Sep 18, 2023
@ghost
Copy link

ghost commented Sep 18, 2023

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

@XamlTest XamlTest added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Sep 20, 2023
@XamlTest
Copy link
Collaborator

Verified this on Visual Studio Enterprise 17.8.0 Preview 2.0. Repro on Windows 11(8.0.0-rc.1.23419.4) with below Project:
17414.zip

@CobaltGoldCS
Copy link

I've been having various styling issues related to this as well

@mattleibow
Copy link
Member

I think the corner radius is from the default OS styles. You can override this by creating your own style to override the OS default style in the Windows platform App.xaml file.

@mobynet1
Copy link
Author

@mattleibow, no that is not the case. I know I can create my own style. The point of opening this is that there should only be minimal defaults for controls. The control was a frame and there should never be rounded corners as the default. That is sugar that should be added by the developer on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-flyoutpage FlyoutPage area-xaml XAML, CSS, Triggers, Behaviors platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants