Skip to content

fix!: Move IsEnabled property from FrameworkElement to Control - #12153

Merged
jeromelaban merged 12 commits into
unoplatform:feature/breaking-changesfrom
Youssef1313:issues/9621
May 10, 2023
Merged

jeromelaban merged 12 commits into
unoplatform:feature/breaking-changesfrom
Youssef1313:issues/9621

Conversation

@Youssef1313

Copy link
Copy Markdown
Member

BREAKING CHANGE: IsEnabled property is moved from FrameworkElement to Control

GitHub Issue (If applicable): closes #9621, Part of #8339

PR Type

What kind of change does this PR introduce?

What is the current behavior?

What is the new behavior?

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

@github-actions github-actions Bot added the platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform label May 3, 2023
@github-actions github-actions Bot added the area/automation Categorizes an issue or PR as relevant to project automation label May 3, 2023

@jeromelaban jeromelaban left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🚀

@ajpinedam ajpinedam left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good!

@github-actions github-actions Bot added the area/build Categorizes an issue or PR as relevant to build infrastructure label May 4, 2023

IsEnabledChanged?.Invoke(this, args);

// TODO: move focus elsewhere if control.FocusState != FocusState.Unfocused

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is there a related task somewhere for this ToDo ? (if so precise the related link)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@agneszitte This is an existing code. @MartinZikmund would probably be best to answer this.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@dr1rrb I see that UpdateHitTest has moved from FrameworkElement to Control. Would it impact anything pointer related?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The UpdateHitTest only requests an update of the coerced "HitTest" property which ends by validating the IsEnable property using the IsEnabledOverride(). So as long as this method override has not been removed it should not cause any issue.

@Youssef1313

Copy link
Copy Markdown
Member Author

@jeromelaban I pushed few commits since you last reviewed. Could you take another look?

@jeromelaban
jeromelaban merged commit 1bcaf1a into unoplatform:feature/breaking-changes May 10, 2023
@Youssef1313
Youssef1313 deleted the issues/9621 branch May 10, 2023 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/automation Categorizes an issue or PR as relevant to project automation area/build Categorizes an issue or PR as relevant to build infrastructure platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants