Skip to content

[Breaking] Remove empty methods RestoreBindings and ClearBindings #13046

Description

@Youssef1313

/// <summary>
/// Restores the bindings that may have been cleared by <see cref="ClearBindings()"/>.
/// </summary>
/// <remarks>
/// Calling this method will specifically restore <see cref="UI.Xaml.Data.Binding.ElementName"/>
/// and <see cref="UI.Xaml.Data.Binding.Source"/> bindings, which are not restored as part of the
/// normal <see cref="DataContext"/> change flow.
/// </remarks>
public void RestoreBindings()
{
}
/// <summary>
/// Clears the bindings for the current binder.
/// </summary>
/// <remarks>
/// This method is used as an out-of-band replacement for setting the DataContext to null, which
/// in the case of two-way bindings, would send the fallback value if it has been set.
/// This method may also clear <see cref="UI.Xaml.Data.Binding.ElementName"/>
/// and <see cref="UI.Xaml.Data.Binding.Source"/> bindings, which need to be restored
/// using the <see cref="RestoreBindings()"/> method.
/// </remarks>
public void ClearBindings()
{
}

These should be deleted.

The generated code in DependencyObjectGenerator will need to be adjusted as well.

Activity

  1. added
    kind/enhancement
    triage/untriaged
    difficulty/tbd
    on Jul 28, 2023
  2. self-assigned this
    on Jul 31, 2023
  3. added
    good first issue
    difficulty/starter 🚀
    and removed
    triage/untriaged
    difficulty/tbd
    on Sep 20, 2023
  4. mnajibi commented on Oct 6, 2023

    @mnajibi

    Hi there! 👋

    I noticed the issue #13046 in this repository, and I'm eager to contribute to its resolution. My name is Maryam.

    Could you please assign this issue to me? I'm excited to dive in and start working on it. If there are any specific details or requirements I should be aware of, please let me know.

    Looking forward to contributing to this project!

    Thanks,
    Maryam

  5. added a commit that references this issue on Oct 6, 2023
  6. jeromelaban commented on Oct 10, 2023

    @jeromelaban
    Member

    @MartinZikmund I don't think we'll be able to place this one in 5.0, we're late in the cycle.

    @mnajibi Thanks for working on this one, though we've placed it in the wrong bucket at this time. Your change is correct, but we're not able to include it in our current master branch.

    Thanks for trying out contributing to Uno Platform!

  7. sasakrsmanovic commented on Oct 10, 2023

    @sasakrsmanovic
    Contributor

    @mnajibi Thanks for engaging. I'd love to see if there are any other issues you are interested in and to see how we can help you. Its great to see a fellow Canadian contribute. Most of our team is in Montreal and I am in Toronto.

  8. added
    kind/breaking-change 💥
    on Oct 23, 2023
  9. github-actions commented on Aug 10, 2025

    @github-actions
    Contributor

    Hey there — just a heads-up that this issue has been quiet for over a year. If there’s no update or comment in the next 10 days, it’ll be closed automatically. Feel free to remove the stale label or drop a note to keep it open.

  10. added
    stale
    on Aug 10, 2025
  11. removed
    stale
    on Aug 11, 2025
  12. changed the title [-]Remove empty methods `RestoreBindings` and `ClearBindings`[/-] [+][Breaking] Remove empty methods `RestoreBindings` and `ClearBindings`[/+] on Aug 11, 2025
  13. MartinZikmund commented on Aug 11, 2025

    @MartinZikmund
    Member

    Still relevant

  14. mohamed-osman-se commented on Oct 2, 2025

    @mohamed-osman-se

    I'd like to work on this issue. Could you please assign it to me?

  15. sasakrsmanovic commented on Oct 2, 2025

    @sasakrsmanovic
    Contributor

    done - let us know if you need help along the way - drop by at https://platform.uno/discord - there is a channel for contributors there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

difficulty/starter 🚀good first issuekind/breaking-change 💥kind/enhancementno-repro

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions