HandyOrg / HandyOrg/HandyControl

GridAttach BUG

Open
#952 2 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
GridAttach存在一个BUG,无法通过RowDefinition/ColumnDefinition的Name定位各子项的行、列位置,通过调试代码,发现是在循环获取RowDefinition/ColumnDefinition的Name时,采用的方法不对,
在public static string GetName(DependencyObject element)中,用的是 element.GetValue(NameProperty);但是根据MSDN,RowDefinition、ColumnDefinition均不存在NameProperty,只有用FrameworkElement.NameProperty在能获取到RowDefinition/ColumnDefinition的Name,

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

Locate GridAttach's public static string GetName(DependencyObject element) method and inspect how it is used while resolving RowDefinition and ColumnDefinition names. Verify that the name lookup works for both types and that their child items receive the expected row and column positions.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.