Skip to content

[Shell] Changed TitleProperty From TwoWay to OneWay #29280

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kubaflo
Copy link
Contributor

@kubaflo kubaflo commented May 1, 2025

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description of Change

It looks like this might be a typo—TwoWay binding may not be necessary here, but please correct me if I'm mistaken.

Issues Fixed

Fixes #29275

@Copilot Copilot AI review requested due to automatic review settings May 1, 2025 17:35
@kubaflo kubaflo requested a review from a team as a code owner May 1, 2025 17:35
@kubaflo kubaflo requested review from rmarinho and tj-devel709 May 1, 2025 17:35
@kubaflo kubaflo self-assigned this May 1, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR changes the binding mode for the TitleProperty from TwoWay to OneWay to correct an apparent typo.

  • Updated the TitleProperty binding mode to OneWay
  • Aims to fix unintended behavior related to two-way binding in Shell item titles
Comments suppressed due to low confidence (1)

src/Controls/src/Core/Shell/BaseShellItem.cs:54

  • Changing the binding mode for a public API property (TitleProperty) from TwoWay to OneWay could be a breaking change and might affect consumers relying on two-way updates. Please ensure that adequate tests are in place, and update the public documentation accordingly.
BindableProperty.Create(nameof(Title), typeof(string), typeof(BaseShellItem), null, BindingMode.OneWay, propertyChanged: OnTitlePropertyChanged);

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label May 1, 2025
Copy link
Contributor

Hey there @@kubaflo! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout community ✨ Community Contribution platform/android 🤖 platform/iOS 🍎
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Binding the Title of a ShellContent with a StringFormat causes the string format to be applied multiple times.
2 participants