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

[NUI] Fix a crash when applying ViewStyle. #6661

Open
wants to merge 1 commit into
base: DevelNUI
Choose a base branch
from

Conversation

huayongxu
Copy link
Contributor

Description of Change

API Changes

  • ACR:

@huayongxu
Copy link
Contributor Author

huayongxu commented Feb 12, 2025

After Xaml in ViewStyle is disabled, Selector instance is returned when ViewStyle.GetInternalBackgroundColorProperty
is called, not Color instance is returned.

But in View.SetInternalBackgroundColorProperty, NUIApplication.IsUsingXaml is checked, then this will cause cast exception.

The NUIApplication.IsUsingXaml check is added in the patch #6077 .
It is unnecessary.

Copy link
Contributor

@dongsug-song dongsug-song left a comment

Choose a reason for hiding this comment

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

approved

Copy link
Contributor

@hinohie hinohie left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Copy link
Contributor

@taehyub taehyub left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@zg2nets zg2nets left a comment

Choose a reason for hiding this comment

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

Looks good

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

Successfully merging this pull request may close these issues.

6 participants