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

Fix: SettingsControls UI #247

Closed
wants to merge 3 commits into from
Closed

Fix: SettingsControls UI #247

wants to merge 3 commits into from

Conversation

0x5bfa
Copy link

@0x5bfa 0x5bfa commented Oct 3, 2023

Fixes

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Code style update (formatting)

What is the current behavior?

What is the new behavior?

PR Checklist

Please check if your PR fulfills the following requirements:

  • Created a feature/dev branch in your fork (vs. submitting directly from a commit on main)
  • Based off latest main branch of toolkit
  • Tested code with current supported SDKs
  • New component
    • Documentation has been added
    • Sample in sample app has been added
    • Analyzers are passing for documentation and samples
    • Icon has been created (if new sample) following the Thumbnail Style Guide and templates
  • Tests for the changes have been added (if applicable)
  • Header has been added to all new source files
  • Contains NO breaking changes

Other information

@0x5bfa
Copy link
Author

0x5bfa commented Oct 3, 2023

@dotnet-policy-service agree

@0x5bfa 0x5bfa marked this pull request as draft October 3, 2023 12:27
@0x5bfa
Copy link
Author

0x5bfa commented Oct 3, 2023

@niels9001 Since XamlStyer always style XAML every time I saved files with Ctrl+S, the diff includes formatting changes. Is it ok?

@niels9001
Copy link
Collaborator

@niels9001 Since XamlStyer always style XAML every time I saved files with Ctrl+S, the diff includes formatting changes. Is it ok?

Could you try and run ApplyXamlStyling.ps1 and push the changes? That should clear that up :).

Like:

cd D:\Windows .\ApplyXamlStyling.ps1 -main

@@ -93,7 +92,7 @@
IsClickEnabled="False" />
</muxc:Expander.Header>
<muxc:Expander.Content>
<Grid>
<Grid CornerRadius="{TemplateBinding CornerRadius}">
Copy link
Collaborator

@niels9001 niels9001 Oct 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When setting the CornerRadius to 24, this now happens:
image

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@0x5bfa would it make sense to add a Converter here that translates the CornerRadius? E.g. a CornerRadius of 24 would be converted to 24,0,0,24?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes definitely, I'd like to make it more generally so everyone can use everywhere. Thus, using ConverterParameter like 'ConverterParameter=1001' true and false combination - it means 24 0 0 24 according to the input.

@niels9001 niels9001 changed the title Fix: Fix SettingsControls UI Fix: SettingsControls UI Oct 6, 2023
@niels9001
Copy link
Collaborator

@0x5bfa FYI, fixed the wrapping issue here: #252

@0x5bfa
Copy link
Author

0x5bfa commented Oct 21, 2023

I didn't think how troublesome styling from terminal. I'm sorry, I'm gonna close.

I hope that someone quickly fix.

@0x5bfa 0x5bfa closed this Oct 21, 2023
@0x5bfa 0x5bfa deleted the 5bfa/Fix-SettingsControlsUI branch October 21, 2023 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants