View Issue Details

IDProjectCategoryView StatusLast Update
0003460NoesisGUIStudiopublic2025-10-30 15:47
Reporterdstewart Assigned Tosfernandez  
PrioritynormalSeveritymajor 
Status resolvedResolutionfixed 
Product VersionStudio_Alpha 
Target VersionStudio_Beta 
Summary0003460: Certain Elements Can Be Added to Incompatible Elements
Description

In Studio, it is currently possible for example, to add a Context Menu Element into for example, a Grid Element. However, doing so instantly yields a XAML Error in the file. ("ContextMenu Object cannot be added to 'Grid'. ContextMenu cannot have a logical or visual parent.

In other such instances of, we apply protections for the user to prevent them from embedding incompatible elements. One such example is how we prevent users from adding a second Child Element to a Border Element which just supports one Child ( "[Grid] cannot be added to a [Border], it already has content")

It would be beneficial to apply the same prevention and warning system for the ContextMenu Element.

Note that the same error occurs for the ToolTip Element.

Steps To Reproduce

Repro Steps:

1) Drag and Drop a ContextMenu or ToolTip Element into a Grid.

Observe the XAML error.

Expected Results: Users are not able to perform operations in which they instantly receive xaml-breaking errors.

PlatformAny

Activities

jsantos

jsantos

2024-07-04 14:18

manager   ~0009739

Also, adding a new Grid to a page that has already a Grid, remove the current Grid without any warning

dstewart

dstewart

2025-10-30 15:46

developer   ~0011311

Not seeing the error occur anymore as of 0.1.244.

Issue History

Date Modified Username Field Change
2024-07-04 14:08 dstewart New Issue
2024-07-04 14:09 dstewart Description Updated
2024-07-04 14:15 dstewart Summary Context Menu Element Can Be Added to Incompatible Elements => Certain Elements Can Be Added to Incompatible Elements
2024-07-04 14:15 dstewart Description Updated
2024-07-04 14:15 dstewart Steps to Reproduce Updated
2024-07-04 14:18 jsantos Assigned To => sfernandez
2024-07-04 14:18 jsantos Status new => assigned
2024-07-04 14:18 jsantos Note Added: 0009739
2024-07-04 14:18 jsantos Target Version => Studio_Alpha
2025-04-02 11:08 sfernandez Target Version Studio_Alpha => Studio_Beta
2025-10-30 15:46 dstewart Status assigned => feedback
2025-10-30 15:46 dstewart Note Added: 0011311
2025-10-30 15:47 dstewart Status feedback => closed
2025-10-30 15:47 dstewart Resolution open => fixed
2025-10-30 15:47 dstewart Status closed => resolved