HandyOrg / HandyOrg/HandyControl
GridAttach BUG
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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