Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Bug/692 badge view #705

Closed
wants to merge 11 commits into from
Closed

Conversation

jmmortega
Copy link

Description of Change

Improve round BadgeView. (A better approach maybe is measure Label text to get size an create round badge from here)

Bugs Fixed

#692 and #641

API Changes

Added:

  • A new BindableProperty for BadgeView called IsRounded to use feature to round Badges
  • Include a new sample inside of sample app, to show how working IsRounded

Changed:

  • Checks to get BorderRadius to get a better rounded effect.
  • I maintain legacy way to create border in BadgeViews

Behavioral Changes

Have a new property inside of BadgeView that for default is True so, in this case devs must be check if BadgeView adapt to design.

PR Checklist

  • Has tests (if omitted, state reason in description)
  • [ X ] Has samples (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • [ X ] Changes adhere to coding standard

@ghost
Copy link

ghost commented Dec 29, 2020

CLA assistant check
All CLA requirements met.

@@ -157,6 +159,25 @@ public FontAttributes FontAttributes
set => SetValue(FontAttributesProperty, value);
}

static void IsRoundedChanged(BindableObject bindable, object oldvalue, object newvalue) =>
Copy link
Contributor

@Cfun1 Cfun1 Jan 5, 2021

Choose a reason for hiding this comment

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

I suggest to follow the same order creation of BindableProperty, getter/setter, property changed event:

BindableProperty.Create
...
public bool IsRounded
...
static void IsRoundedChanged(BindableObject bindable, object oldvalue, object newvalue) => 

Copy link
Author

Choose a reason for hiding this comment

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

Changed!

@jfversluis
Copy link
Member

@jmmortega are you able to still answer the questions and/or make the requested changes?

If not, no problem! Just let us know so we can take over :)

Thanks!

@jmmortega
Copy link
Author

@jfversluis Yep!. Sorry! This weekend complete all your requests!

@Cfun1
Copy link
Contributor

Cfun1 commented Feb 11, 2021

@jmmortega Could you please resolve the conflict ?

Comment on lines +160 to +163

public static BindableProperty IsRoundedProperty =
BindableProperty.Create(nameof(IsRounded), typeof(bool), typeof(BadgeView), true,
propertyChanged:IsRoundedChanged);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
public static BindableProperty IsRoundedProperty =
BindableProperty.Create(nameof(IsRounded), typeof(bool), typeof(BadgeView), true,
propertyChanged:IsRoundedChanged);
/// <summary>
/// Backing BindableProperty for the <see cref="IsRounded"/> property.
/// </summary>
public static BindableProperty IsRoundedProperty =
BindableProperty.Create(nameof(IsRounded), typeof(bool), typeof(BadgeView), true,
propertyChanged:IsRoundedChanged);

@jfversluis
Copy link
Member

Hey @jmmortega sorry for getting back to this so late... Are you still interested in fixing this? :)

I think it makes sense to make the badges round, I'm not sure on the approach here though... Could we change it to open up the corner radius to people? We will make it round by default, but if they want anything different they can just use the corner radius to do something else?

If you're not interested anymore for whatever reason, I totally understand, just please let us know so we or someone else can take it. Thanks!

@jfversluis jfversluis mentioned this pull request Feb 25, 2021
5 tasks
@Cfun1
Copy link
Contributor

Cfun1 commented Mar 12, 2021

Trying to draw some attention to this pr, I guess it needs a re-target to develop.
@jfversluis, @pictos @AndreiMisiukevich

@AndreiMisiukevich
Copy link
Contributor

@Cfun1 thank you :)

Yes please @jmmortega could you please retarget this PR to develop branch?

@TheCodeTraveler TheCodeTraveler changed the base branch from main to develop April 8, 2021 21:57
@TheCodeTraveler
Copy link
Contributor

@jmmortega Could you please resolve the merge conflicts? Thanks!

@eddie010
Copy link

Really looking forward to this getting implemented!

@AlleSchonWeg
Copy link

Any news here? Could somebody resolve the conflicts and merge?!
Thx.

@TheCodeTraveler TheCodeTraveler added the stale no activity for 30 days label Jun 24, 2021
@TheCodeTraveler
Copy link
Contributor

Closing PR as it has been abandoned.

If anybody is interested in taking over this PR we are more than happy to re-open it!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
stale no activity for 30 days
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants