View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002610||NoesisGUI||C++ SDK||public||2023-05-26 15:47||2023-05-26 17:55|
|Summary||0002610: Namescope is of UserControl is used when resolving names outside of the UserControl's file|
|Description||When using a UserControl of one type inside of a UserControl of another type, and both of the root nodes are named the same (for example "Root), bindings using ElementName can be resolved incorrectly. Particularly this happens if one tries to set a property of the child element to a binding that uses ElementName, with the specified name being "Root" in this case. Instead of binding to a property of the parent control named "Root", it will bind to a property of the child control that's also named "Root".|
This used to be how it worked in WPF too, but has since been patched by Microsoft.
See this forum post for details and a minimal example: https://www.noesisengine.com/forums/viewtopic.php?p=15661&sid=efc072b489689f942a23c84bc7c285ee#p15658
|Tags||No tags attached.|