Giter Club home page Giter Club logo

selecting a button in one month and then changing the month to a month where that same button becomes a special date without an explicit border automatically gives it the selected border style about xamforms.controls.calendar HOT 4 CLOSED

rebeccaxam avatar rebeccaxam commented on July 20, 2024
selecting a button in one month and then changing the month to a month where that same button becomes a special date without an explicit border automatically gives it the selected border style

from xamforms.controls.calendar.

Comments (4)

rebeccaXam avatar rebeccaXam commented on July 20, 2024

Thanks, it could be a race condition. I will release a new version (1.0.6) at the end of this week would you check this again with that version.
I could not reproduce this, but I already changed some code, so I do not know if this problem was solve by that.

from xamforms.controls.calendar.

KRA2008 avatar KRA2008 commented on July 20, 2024

It seems to only happen when the SpecialDate doesn't specify an explicit border color. In the example app this would be the SpecialDate set 3 days after today. I'm guessing when the month is changed the button just keeps the border color the same as it was when it was in the previous month because the incoming SpecialDate doesn't specify anything to set it to. It looks like the analogous problem happens for SelectedFontSize.

At first blush I might suggest setting all buttons to normal when the month changes before going back and layering special & selected stylings on top. That might mean setting a few colors and things twice (maybe inefficient) but it would make it easier to maintain the "default" styling.

from xamforms.controls.calendar.

KRA2008 avatar KRA2008 commented on July 20, 2024

Looking closer, the suggestion I made might work, but it looks like you already have some code for handling selected buttons that does the sort of handling of default styles we would need for SpecialDates: https://github.com/rebeccaXam/XamForms.Controls.Calendar/blob/master/XamForms.Controls.Calendar/Calendar.xaml.cs#L1030
I guess one of the approaches would need to be chosen but I'm not sure of the full consequences of the each yet.

from xamforms.controls.calendar.

rebeccaXam avatar rebeccaXam commented on July 20, 2024

I hoop this is resolved in 1.0.8, if not please reopen this issue.

from xamforms.controls.calendar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.