-
Notifications
You must be signed in to change notification settings - Fork 405
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
IsInRangeConverter #582
IsInRangeConverter #582
Conversation
The issue is not championed |
My appologies, I jumped the gun. Was ensuring that before my time becomes more restricted starting next week, any work I have done was made available. Have been discussing and sharing this with @bijington and didn't check to see if the championed status had been updated. |
Closing PR until Proposal has been Approved |
Reopening after Proposal Approval |
@JoonghyunCho @bijington This is ready for review. Any suggestions, improvements, additions would be very much appreciated. Documentation is also needed, which I will work on! |
Please note that I do not have access to any iOS or Mac Catalyst devices (or Tizen), as such, please make sure that any reviewer who does have access, to please update as appropriate the checkbox indicating that it works on that platform. |
I will check if it works ok on iOS and Mac devices later tonight :) |
Also, please be aware that I also need to create the appropriate test cases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks George!
Just FYI - I updated the sample app to use a single Grid
for its layout. The initial implementation had Grid
s nested inside of HorizontalStackLayout
s nested inside of VerticalStackLayout
s.
don't attempt to reproduce the appearance of a specific layout by using combinations of other layouts, as this results in unnecessary layout calculations being performed. For example, don't attempt to reproduce a Grid layout by using a combination of StackLayout instances.
https://learn.microsoft.com/xamarin/xamarin-forms/deploy-test/performance#choose-the-correct-layout
Because of the large number of Rows in the Grid
, I ported the IsInRangeConverterPage
to C# Markup which allows the naming of rows + columns. This makes it easier to assign UI controls to their respective column + row and helps avoid confusion amongst which row is which in the Grid
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving again after adding the Bindable Properties defined in #65
@brminnick I used the existing converters as a guide for implementation, especially |
@brminnick I used the existing converters as a guide for implementation, especially
@brminnick Originally it started off as 1 sample that I hoped to make multi-use. However it didn't pan out that way. I should have converted to be a grid, and would have been happy to do the work, if I was given a chance to do so from a review. |
No worries at all, George! You always do fantastic work and we're honored to have you as a strong contributor ❤️ The BindableProperties were in the API Design for the approved Proposal, and I wanted to ensure we honored that spec. I agree it is a bit inconsistent with other Converters today, but I think it opens up an awesome opportunity to add BindableProperties to existing Converters! And your sample was great too! Since I know many devs will copy/paste our samples, I just wanted to ensure we start them off on the right path using best practices. You'd be surprised how many times I've been blamed in the past because I wrote some quick + dirty code as an example, only to find another dev copy/pasted it and made it the foundation of their app 😳 |
@brminnick Have you seen all the Unit Tests I put in? :-D |
Description of Change
Implement the proposed
IsInRangeConverter
.Linked Issues
#65
PR Checklist
approved
(bug) orChampioned
(feature/proposal)main
at time of PRAdditional information
Tested on: