microsoft / microsoft/windows-rs

`windows-reactor`: Add `TreeNode::content(impl Into<View>)` method or similar

Open
#4,972 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
12.8k
Forks
665
Avg merge
7h 9m
Merged PRs (30d)
70

Description

`TreeNode` only accepts a plain-text string at construction time. There's no way to set a node's content to achieve a custom layout (e.g. an image/icon next to the label).

In XAML we'd normally have something like:

```xaml







```

Contributor guide

Open the contributing guide

Research direction

Start at the windows-reactor implementation of TreeNode and inspect how its plain-text content is constructed, along with the existing View APIs. Define and add a content-setting path that accepts a custom View, then verify that a tree node can display a composed layout such as an image beside a label.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.