Skip to content

Provide a formalized mechanism with BindableObjects, so we can update the values but not trigger a handler update #22585

Closed as not planned

Description

@PureWeen

Description

We're starting to see a number of scenarios where circular updates are causing performance issues.

#22347
#22413

You can see this pretty easily with any control that sends an update from platform code to xplat code.

For example, the radiobutton

  • click the radiobutton
  • radiobutton sets xplat value via (SetValue(IsCheckedProperty, true, specificity: SetterSpecificity.FromHandler);)
  • this triggers OnPropertyChanged on the Element code

image

  • this now propagates back down to the handler (Ideally this wouldn't happen)

Considerations

  • Is there a SetValue Path we should make public to users?
  • Is this something we should build into BindableObject? Shift all the code from Element.OnPropertyChanged up into BindableObject?

Related Issue

#5587

I'm curious if we can fix both of these issues with the same PR :-)

Activity

  1. added
    s/triaged
    on May 22, 2024
  2. added
    area-controls-general
    and removed
    s/triaged
    on May 22, 2024
  3. added this to the .NET 9 Planning milestone on May 22, 2024
  4. github-actions commented on May 22, 2024

    @github-actions
    Contributor

    Hi I'm an AI powered bot that finds similar issues based off the issue title.

    Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

    Open similar issues:

    Note: You can give me feedback by thumbs upping or thumbs downing this comment.

  5. self-assigned this
    on Apr 14, 2025
  6. moved this from Todo to In Progress in MAUI SDK Ongoingon Jun 25, 2025
  7. removed their assignment
    on Jul 4, 2025
  8. moved this from In Progress to Done in MAUI SDK Ongoingon Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-controls-generalproposal/underconsideration

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions