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

Split out input controls from core #3727

Merged
merged 8 commits into from
Feb 8, 2021
Merged

Split out input controls from core #3727

merged 8 commits into from
Feb 8, 2021

Conversation

Rosuavio
Copy link
Contributor

@Rosuavio Rosuavio commented Feb 3, 2021

Step towards #3594

Split out Input controls ( ColorPicker, RadialGauge, RangeSelector, RemoteDevicePicker, TokenizingTextBox) from Core

PR Type

What kind of change does this PR introduce?

What is the current behavior?

What is the new behavior?

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Pull Request has been submitted to the documentation repository instructions. Link:
  • Sample in sample app has been added / updated (for bug fixes / features)
  • New major technical changes in the toolkit have or will be added to the Wiki e.g. build changes, source generators, testing infrastructure, sample creation changes, etc...
  • Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Header has been added to all new source files (run build/UpdateHeaders.bat)
  • Contains NO breaking changes

Other information

@ghost
Copy link

ghost commented Feb 3, 2021

Thanks RosarioPulella for opening a Pull Request! The reviewers will test the PR and highlight if there is any conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌

@ghost ghost requested review from michael-hawker, azchohfi and Kyaa-dost February 3, 2021 16:53
@Rosuavio Rosuavio changed the title Split out input controls from core [WIP] Split out input controls from core Feb 3, 2021
@michael-hawker
Copy link
Member

@RosarioPulella is that not built on top of the Layout changes? #3714

@Rosuavio
Copy link
Contributor Author

Rosuavio commented Feb 3, 2021

@michael-hawker nows its based off #3714

@michael-hawker
Copy link
Member

@RosarioPulella looks like the unit test is failing:

image

This type of thing with the ResourceDictionary usually indicates that there's an issue with the control style (like something wasn't moved in Generic.xaml between the projects). I'll take a quick look.

@michael-hawker
Copy link
Member

Yup, we'll see if that fixes it... 🤞

@michael-hawker
Copy link
Member

Almost there, forgot to add a Smoke Test project, so we got no updates in the baseline for the new package...

@michael-hawker
Copy link
Member

@RosarioPulella think my last commit should fix the smoke test build? To reference another XAML based control package in another, there's the hack that we needed to apply like we did in the Markdown package. Since that wasn't there it couldn't be loaded properly in the Smoke Test (it's why we added them).

Anyway, I rejigged the Input package to only rely on the Primitives package, so that also solves it as they don't have XAML. Only thing missing was the DropShadowPanel that had one instance in the ColorPicker. I think it looks alright without, but we could maybe just fake it if we really wanted somehow later???

As I was checking the style though I noticed the ColorSliders within the ColorPicker weren't working though. Not sure if that happened in the move or somewhere since their PR (the code hasn't changed itself). Basically when you click on the slider the little round selector doesn't follow like it should...

Something we should look into, but at least we should be able to get numbers in the morning first... 🤞

@Rosuavio
Copy link
Contributor Author

Rosuavio commented Feb 5, 2021

@michael-hawker

As I was checking the style though I noticed the ColorSliders within the ColorPicker weren't working though. Not sure if that happened in the move or somewhere since their PR (the code hasn't changed itself). Basically when you click on the slider the little round selector doesn't follow like it should...

Can you further describe the behavior you saw. For me the circles seem to be tracking just fine, at most I can say that they seem to jump around a bit if I move very fast on the picker, but on the slider it seems to be tracking well.

@michael-hawker michael-hawker merged commit 7a7ec26 into CommunityToolkit:dev/split-controls Feb 8, 2021
@michael-hawker
Copy link
Member

Merging this as we've been poking at it a bit and will continue fixing thing forward in the dev branch.

ghost pushed a commit that referenced this pull request Feb 17, 2021
Quick test to evaluate the footprint of this individual control on the package.

Based off PR #3727

Comparing against #3733, wondering if it's this single API or not that has an effect, as everything else seems rather common or using other things already being used in other APIs in the Toolkit...

Updated as we identified the custom caching in #2486 is the culprit to the application footprint. Reverting to just use System Cache with the applied fix still to evaluate final impact again with compiled dlls.

This should save around **675kb** to optimized app footprint.

Also Fixes #3741 removing unused element.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
controls 🎛️ for-review 📖 To evaluate and validate the Issues or PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants