Skip to content

refactor: drop toolkit TreeGraph in favor of Uno's - #1650

Merged
Xiaoy312 merged 1 commit into
mainfrom
dev/xygu/20260924/drop-toolkit-treegraph
Sep 28, 2026
Merged

Xiaoy312 merged 1 commit into
mainfrom
dev/xygu/20260924/drop-toolkit-treegraph

Conversation

@Xiaoy312

Copy link
Copy Markdown
Contributor

GitHub Issue: closes #1642

PR Type

  • Refactoring (no functional changes, no api changes)

What is the current behavior?

The toolkit's internal VisualTreeHelperEx.TreeGraph(...) overloads have the same name and signature as Uno's public Uno.UI.Extensions.ViewExtensions.TreeGraph(...). When both namespaces are in scope the calls are ambiguous, so debugger watch expressions have to use the fully qualified name.

What is the new behavior?

  • The toolkit's TreeGraph overloads and the DebugVTNode wrappers are removed.
  • The toolkit describer is kept as VisualTreeHelperEx.DescribeToolkitProperties(object). It still covers Responsive, ScrollViewer, visual states, layout and the rest. Pass it to Uno's TreeGraph(reference, describeProperties) overload, which already writes the Type#Name // props line and handles exceptions:
    this.TreeGraph(VisualTreeHelperEx.DescribeToolkitProperties)
  • The sample Shell debug helper and a commented-out hint in DrawerFlyoutTests now use the new call.

PR Checklist

  • Tested code with current supported SDKs: CI only. The local build could not run (see below).
  • Documentation: not needed (internal debug-only helper)
  • Runtime Tests: not needed (no product behavior change)
  • Contains NO breaking changes (all removed members were internal)
  • Associated with an issue
  • Commits follow Conventional Commits

Other information

I checked Uno.UI 7.0.0-dev.701 (the version in global.json): ViewExtensions.TreeGraph(DependencyObject, Func<object, IEnumerable<string>>) is public. The sample heads build only Uno targets (android/ios/wasm/desktop), so that API is always available where the sample calls it.

The local build could not run. My local NuGet cache had a local Uno build copied over Uno.WinUI 7.0.0-dev.701 (a NuGet override from another checkout), so the build failed with or without this change. CI needs to confirm it compiles.

🤖 Generated with Claude Code

- Remove VisualTreeHelperEx.TreeGraph overloads that collide with Uno.UI.Extensions.ViewExtensions.TreeGraph
- Keep the toolkit describer as VisualTreeHelperEx.DescribeToolkitProperties, to pass to Uno's TreeGraph(reference, describeProperties)
- Update sample Shell debug helper and commented test hint accordingly

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@Xiaoy312
Xiaoy312 requested a review from kazo0 September 24, 2026 18:15
@github-actions

Copy link
Copy Markdown

@mergify

mergify Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@Xiaoy312
Xiaoy312 merged commit 06d55b4 into main Sep 28, 2026
22 checks passed
@Xiaoy312
Xiaoy312 deleted the dev/xygu/20260924/drop-toolkit-treegraph branch September 28, 2026 13:46
@Xiaoy312 Xiaoy312 linked an issue Nov 20, 2026 that may be closed by this pull request
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.

drop toolkit variant of TreeGraph Avoid redefining .TreeGraph extension method

2 participants