View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003798 | NoesisGUI | C# SDK | public | 2024-11-18 14:53 | 2024-11-22 11:19 |
Reporter | aivanov | Assigned To | sfernandez | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.2.2 | ||||
Target Version | 3.2.6 | Fixed in Version | 3.2.6 | ||
Summary | 0003798: OneWay Binding to ContextMenu IsOpen causes AdornerDecorator Error | ||||
Description | Adding 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 Reproduce | The 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> | ||||
Tags | ContextMenu, xaml | ||||
Platform | Windows | ||||
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 |