HandyOrg / HandyOrg/HandyControl

怎么从Transfer控件的SelectionChanged的EventArgs中拿到AddedItems?

Open
#559 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

private void Transfer_OnSelectionChanged(object sender, SelectionChangedEventArgs e) {}
e.AddItems[0]强转KeyValuePair<object,object>时报错,
请问该如何拿到AddedItems里绑定的数据?

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 with Transfer_OnSelectionChanged and the WPF SelectionChangedEventArgs e.AddItems value; reproduce the failing cast and inspect the Transfer control's item type and binding shape. Done means verifying how the bound data can be retrieved from AddedItems with a focused 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
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.