View Issue Details

IDProjectCategoryView StatusLast Update
0003994NoesisGUIC++ SDKpublic2025-03-10 09:54
ReporterRafael Munoz Assigned Tosfernandez  
PrioritynormalSeverityminor 
Status feedbackResolutionopen 
Product Version3.2.4 
Target Version3.2.8 
Summary0003994: Difference EventTriggerBaseT.GetSource between WPF and Noesis
Description

While implementing a custom event trigger, I noticed a difference between Noesis and Wpf implementation of GetSource(C++)/Source(C#)

Context: The trigger source has not been on the xaml ( see reference )
Trying to fetch Source during OnAttached method produces the following
[WPF/C#] Source, returns the associated object ( Since source is not assigned )
[Noesis] GetSource, returns null

Attached a reference screenshot on a breakpoint showing the values of both getsource and getassociated object

Steps To Reproduce

1- Implement a dummy CustomEventTrigger inheriting from EventTriggerBaseT<FrameworkElement>
2- Override OnAttached event
3- Use the custom event trigger in xaml
4- Use GetSource inside OnAttched event
5- Place a breakpoint after assigning it to a variable
6- Launch the application
7- The the application to hit the breakpoint

Expected: Both behave the same way
Actual:
[WPF/C#] Source, returns the associated object ( Since source is not assigned )
[Noesis] GetSource, returns null

TagsC++, NoesisWPF_Parity
Attached Files
image.png (147,843 bytes)   
image.png (147,843 bytes)   
image-2.png (38,766 bytes)   
image-2.png (38,766 bytes)   
PlatformAny

Activities

Rafael Munoz

Rafael Munoz

2025-03-08 00:07

reporter   ~0010390

You can close this ticket, I have confirmed it was an implementation mistake within OnAttached method
I was not calling the base implementation before running the code, doing that solves the issue.
In c# i was not calling the base class and it was working fine, that made me not notice i was not calling the base implementation.

sfernandez

sfernandez

2025-03-10 09:54

manager   ~0010391

I still think we need to fix the GetSource() to calculate the source if it was not done before.
I'm leaving it open and will change that for the next release.

Issue History

Date Modified Username Field Change
2025-03-07 19:10 Rafael Munoz New Issue
2025-03-07 19:10 Rafael Munoz Tag Attached: C++
2025-03-07 19:10 Rafael Munoz Tag Attached: NoesisWPF_Parity
2025-03-07 19:10 Rafael Munoz File Added: image.png
2025-03-07 19:10 Rafael Munoz File Added: image-2.png
2025-03-07 19:55 jsantos Assigned To => sfernandez
2025-03-07 19:55 jsantos Status new => assigned
2025-03-07 19:55 jsantos Target Version => 3.2.8
2025-03-08 00:07 Rafael Munoz Note Added: 0010390
2025-03-10 09:54 sfernandez Status assigned => feedback
2025-03-10 09:54 sfernandez Note Added: 0010391