Skip to content
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

[BreadcrumbBar] Fix issue where setting ItemsSource was not respected #6316

Merged

Conversation

marcelwgn
Copy link
Contributor

Description

When itemssource was changed, the itemsrepeater was not provided the new itemssource.

Motivation and Context

Closes #5986

How Has This Been Tested?

Added new API test

Screenshots (if appropriate):

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Nov 15, 2021
Comment on lines +151 to +155
if (const auto& itemsRepeater = m_itemsRepeater.get())
{
m_itemsIterable = winrt::make_self<BreadcrumbIterable>(ItemsSource());
itemsRepeater.ItemsSource(*m_itemsIterable);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I copied this over from the OnBreadcrumbBarItemsSourceCollectionChanged handler, why is the collection items changed handler even setting the ItemSource? Was this intentional or just an oversight?

@beervoley beervoley added area-Breadcrumb team-Controls Issue for the Controls team labels Nov 20, 2021
@beervoley
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters StephenLPeters removed the needs-triage Issue needs to be triaged by the area owners label Feb 10, 2022
@StephenLPeters StephenLPeters merged commit 9aedb00 into microsoft:main Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Breadcrumb team-Controls Issue for the Controls team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BreadcrumbBar : OneWay binding does not work at all
3 participants