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

25421- ListViewRenderer Crash in HostApp and BindingError was occured in windows platforms #25453

Merged
merged 3 commits into from
Oct 24, 2024

Conversation

vishnumenon2684
Copy link
Contributor

@vishnumenon2684 vishnumenon2684 commented Oct 22, 2024

RootCause

ListViewRenderer Crash on HostApp

As the HostApp uses a ListView to display a list of items, selecting a page navigates to the corresponding test cases and sets the sample page as the current main page. This action disposes the HostApp's main page, which contains the ListView. As a result, the previous list is also disposed, leading to a crash in the ListViewRenderer during the OnControlSelectionChanged event.

BindingErrors occurs on windows platform

In the HostApp, the pages private field of the ListView is set as the BindingContext of the ListView, which is causing the issue. The pages field is directly assigned to the ItemsSource, so there's no need to set the BindingContext. The problem arises because the same collection is being used for both the BindingContext and the ItemsSource, which is the root cause of the issue.

Description of Change

ListViewRenderer Crash on HostApp

The ListView events are unwired, and resources are cleaned up in the DisconnectHandlerCore method of the ListView renderer, ensuring all events are properly disconnected.

BindingErrors occurs on windows platform

There is no need to define the BindingContext.

Issues Fixed

Fixes #25421

@vishnumenon2684 vishnumenon2684 requested a review from a team as a code owner October 22, 2024 14:52
@vishnumenon2684 vishnumenon2684 requested review from Eilon and tj-devel709 and removed request for a team October 22, 2024 14:52
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Oct 22, 2024
@vishnumenon2684
Copy link
Contributor Author

@dotnet-policy-service agree

@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@PureWeen
Copy link
Member

/rebase

@PureWeen
Copy link
Member

/rebase

1 similar comment
@PureWeen
Copy link
Member

/rebase

@jsuarezruiz jsuarezruiz self-requested a review October 24, 2024 08:54
@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@PureWeen PureWeen merged commit 9939516 into dotnet:release/9.0.1xx Oct 24, 2024
4 of 5 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 24, 2024
@sheiksyedm sheiksyedm added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Dec 6, 2024
@samhouts samhouts added the fixed-in-net8.0-nightly This may be available in a nightly release! label Dec 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community ✨ Community Contribution fixed-in-9.0.0 fixed-in-net8.0-nightly This may be available in a nightly release! partner/syncfusion Issues / PR's with Syncfusion collaboration platform/iOS 🍎 platform/windows 🪟
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants