HandyOrg / HandyOrg/HandyControl

Bug title

Open
#1,656 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
7.2k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

组件treeView使用或者时样式出现问题

Steps to reproduce the bug

<TreeView d:ItemsSource="{d:SampleData}"> <TreeView.ItemTemplate> <HierarchicalDataTemplate> <TreeViewItem Header="测试"></TreeViewItem> </HierarchicalDataTemplate> </TreeView.ItemTemplate> </TreeView>
使用MVVM模式渲染界面时,此种方式TreeViewItem 的样式异常,字体靠右并且显示的文本有个框子

Expected behavior

和使用一下代码的样式相同
<TreeView d:ItemsSource="{d:SampleData}"> </TreeView>

Screenshots

QQ20240927-172055
QQ20240927-172117

NuGet package version

HandyControl 3.4.0

IDE

Visual Studio 2022

Framework type

.Net 6.0

Windows version

Windows 11 (22000)

Additional context

.net core 8.0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the TreeView example with DataTemplate and HierarchicalDataTemplate in a WPF sample using HandyControl 3.4.0, then compare it with the default TreeView rendering. Trace the TreeViewItem styling and template entry points; done means the templated item has the same alignment, text appearance, and border behavior as the default example.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.