Skip to content

Wait for a control to have a parent before loading its template - #192

Merged
dr1rrb merged 1 commit into
masterfrom
dev/dr/ControlTemplate
Sep 12, 2018
Merged

dr1rrb merged 1 commit into
masterfrom
dev/dr/ControlTemplate

Conversation

@dr1rrb

@dr1rrb dr1rrb commented Sep 12, 2018 •

Copy link
Copy Markdown
Member

Issue: #190

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

Templates of controls are loaded as soon as the Template property is set

What is the new behavior?

We check if the control has a parent before loading its template.

Note: for now we only check if the control has a parent, but we should also check if the control is in the visual tree. See the #190 for full behavior description.

PR Checklist

  • Tested code with current supported SDKs
  • Docs have been added/updated which fit documentation template. (for bug fixes / features)
  • Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Contains NO breaking changes

@dr1rrb dr1rrb self-assigned this Sep 12, 2018
@dr1rrb
dr1rrb requested a review from jeromelaban September 12, 2018 19:22
@dr1rrb
dr1rrb force-pushed the dev/dr/ControlTemplate branch from 858adab to 7d3b176 Compare September 12, 2018 19:23
@dr1rrb
dr1rrb merged commit 1586be6 into master Sep 12, 2018
@dr1rrb
dr1rrb deleted the dev/dr/ControlTemplate branch September 12, 2018 20:15
@davidjohnoliver

Copy link
Copy Markdown
Contributor

This isn't the right fix, even as a temporary one. It breaks ApplyTemplate() and it breaks CanCreateTemplateWithoutParent.

The good fix to restore lazy template loading is to set the flag for that, FeatureConfiguration.Control.UseLegacyLazyApplyTemplate.

kazo0 pushed a commit to kazo0/uno that referenced this pull request Mar 6, 2026
kazo0 pushed a commit to kazo0/uno that referenced this pull request Mar 6, 2026
…-behind-flyout

fix see code behind flyout issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants