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

fix(TabBar): dp exceptions when using TBI as ItemTemplate root #1299

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

Conversation

Xiaoy312
Copy link
Contributor

@Xiaoy312 Xiaoy312 commented Dec 4, 2024

GitHub Issue (If applicable): closes #1285

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

When using TabBar::ItemTemplate with TabBarItem as the root element, there are multiple exceptions throw on item materialization causing performance degradation:

The Dependency Property [WrongDP] is owned by [Control] and cannot be used on [ContentPresenter].

What is the new behavior?

^ no more.

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Tested the changes where applicable:
    • UWP
    • WinUI
    • iOS
    • Android
    • WASM
    • MacOS
    • Skia
  • Updated the documentation as needed:
  • Runtime Tests and/or UI Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Contains NO breaking changes
  • Associated with an issue (GitHub or internal)
  • Commits must be following the Conventional Commits specification.

Other information

regression from #1261, which added support for TabBar::ItemTemplate with TabBarItem as the root element.

@Xiaoy312

This comment was marked as outdated.

@Xiaoy312 Xiaoy312 force-pushed the dev/xygu/20241204/tabbar-nested-tbi-containerstyle branch from 71a4aba to 42fd720 Compare December 4, 2024 19:49
@unodevops
Copy link

⚠️⚠️ The build 149388 has failed on Uno Toolkit - CI.

@Xiaoy312
Copy link
Contributor Author

Xiaoy312 commented Dec 6, 2024

fixme@xy: // failing in all ios/droid/wasm

  • Verify_ItemTemplate_Has_No_Nested_TabBarItem
  • Verify_ItemTemplate_Disabled_Not_Selectable

@nickrandolph
Copy link
Contributor

@kazo0 / @Xiaoy312 any progress on getting this issue fixed? The temporary workaround we have can't be applied more generally as it affects the layout/UX of the tabbar too much.

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.

When using TabBar inside a ItemsRepeater - we have a delay to load the page and lost info
3 participants