View Issue Details

IDProjectCategoryView StatusLast Update
0003798NoesisGUIC# SDKpublic2024-11-22 11:19
Reporteraivanov Assigned Tosfernandez  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.2.2 
Target Version3.2.6Fixed in Version3.2.6 
Summary0003798: OneWay Binding to ContextMenu IsOpen causes AdornerDecorator Error
DescriptionAdding a one way binding to the "IsOpen" property on a button's context menu results in the following error the second time that the context menu is opened (with right click):
[NOESIS] AdornerDecorator.GetVisualChild(1) returned child (AdornerLayer) with a different visual parent (null)

This can be caused by a OneWayToSource binding like this:
<ContextMenu IsOpen="{Binding RelativeSource={RelativeSource AncestorType=ScrollViewer}, Path=DataContext.IsContextMenuOpen, Mode=OneWayToSource}">


Original Post: https://www.noesisengine.com/forums/viewtopic.php?t=3503


Steps To ReproduceThe following XAML code produces the error 100% of the time. The error occurs specifically the second time that a particular context menu is openend.

<Button x:Name="TemplateButton" Focusable="True">
            <Button.ContextMenu>
                <ContextMenu IsOpen="{Binding RelativeSource={RelativeSource AncestorType=ScrollViewer}, Path=DataContext.IsContextMenuOpen, Mode=OneWayToSource}">
            </Button.ContextMenu>
 </Button>
TagsContextMenu, xaml
PlatformWindows

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2024-11-18 14:53 aivanov New Issue
2024-11-18 14:53 aivanov Tag Attached: ContextMenu
2024-11-18 14:53 aivanov Tag Attached: xaml
2024-11-19 10:26 sfernandez Assigned To => sfernandez
2024-11-19 10:26 sfernandez Status new => assigned
2024-11-19 10:26 sfernandez Target Version => 3.2.6
2024-11-22 11:19 sfernandez Status assigned => resolved
2024-11-22 11:19 sfernandez Resolution open => fixed
2024-11-22 11:19 sfernandez Fixed in Version => 3.2.6