View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001984 | NoesisGUI | Unity | public | 2021-04-27 01:23 | 2021-05-25 14:46 |
| Reporter | KeldorKatarn | Assigned To | sfernandez | ||
| Priority | urgent | Severity | major | ||
| Status | assigned | Resolution | open | ||
| Product Version | 3.0.11 | ||||
| Summary | 0001984: MouseButtonEventArgs Source Property incorrect value | ||||
| Description | The MouseButtonEventArgs.Source property returns the wrong value. It returns what should be OriginalSource. | ||||
| Platform | Any | ||||
| related to | 0001981 | assigned | sfernandez | KeyEventArgs is missing the OriginalSource property |
| child of | 0001038 | assigned | sfernandez | Caliburn.Micro metaticket |
|
Could you please point out an scenario where you need to use the Source property instead of the OriginalSource? Anyway, as you pointed out the meaning is not the same as in WPF, we should probably change this. |
|
|
Imagine this layout:
The behavior does this:
If I click on the Menu, then args.Source will be Menu, if I click on the Toolbar, the args.Source will be Toolbar. if I click into the empty space, the args.Source will be DockPanel Right now Noesis is putting Border or some other hit visual element in the Source property. That should be OriginalSource to detect the visual element that caused the event to be created. Without this being correct, I can in this example not detect if I clicked any of the DockPanel's child elements or the DockPanel iteself where no child elements exist. |
|
|
I see your point here.
|
|
|
Yes but I also had the case where I filled the remaining space with another child. So then it doesn't work anymore since I need to detect the specific child. |
|
|
I have another example for you regarding Source and OriginalSource. Consider this situation:
#if !NOESIS In WPF e.Source is the TreeView and e.OriginalSource is the TreeViewItem In Noesis e.Source is the TreeViewItem That is inconsistent and breaks code between Blend and Noesis |
|
|
I'm not sure how WPF does this, but I think Source is the source item in the logical tree and original source the true source visual in the visual tree which is part of the subtree of the source in the logical tree? |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2021-04-27 01:23 | KeldorKatarn | New Issue | |
| 2021-04-27 17:13 | KeldorKatarn | Relationship added | related to 0001981 |
| 2021-04-27 21:01 | sfernandez | Assigned To | => sfernandez |
| 2021-04-27 21:01 | sfernandez | Status | new => feedback |
| 2021-04-27 21:01 | sfernandez | Note Added: 0007172 | |
| 2021-04-27 21:48 | KeldorKatarn | Note Added: 0007174 | |
| 2021-04-27 21:48 | KeldorKatarn | Status | feedback => assigned |
| 2021-04-27 21:49 | KeldorKatarn | Note Edited: 0007174 | |
| 2021-04-28 11:14 | jsantos | Target Version | => 3.0.12 |
| 2021-04-29 12:20 | sfernandez | Status | assigned => feedback |
| 2021-04-29 12:20 | sfernandez | Note Added: 0007190 | |
| 2021-04-29 19:57 | KeldorKatarn | Note Added: 0007196 | |
| 2021-04-29 19:57 | KeldorKatarn | Status | feedback => assigned |
| 2021-04-30 08:22 | KeldorKatarn | Note Added: 0007198 | |
| 2021-05-04 02:40 | jsantos | Target Version | 3.0.12 => 3.0.13 |
| 2021-05-24 19:42 | KeldorKatarn | Note Added: 0007255 | |
| 2021-05-25 14:40 | KeldorKatarn | Relationship added | child of 0001038 |
| 2021-05-25 14:46 | KeldorKatarn | Priority | normal => urgent |
| 2025-10-10 13:29 | jsantos | Category | Unity3D => Unity |