View Issue Details

IDProjectCategoryView StatusLast Update
0004305NoesisGUIStudiopublic2026-04-16 03:47
Reporterdstewart Assigned Todfranjic  
PrioritynormalSeveritymajor 
Status resolvedResolutionfixed 
Product VersionStudio_Beta 
Target Version4.0 
Summary0004305: Dragging an Element Into An Empty Part of the Stage Deletes Entire Hierarchy
Description

Currently, if there happens to be any portion of the Stage that is physically unoccupied by an Element, dragging a new Element will, instead of placing the Element in the hierarchy, delete all content on the Page, and replace the Root Element with the dragged-in Element.

See attached video.


Repro Steps:

1) Create a new Project containing a Mainpage.xaml
2) Introduce as many and as as varied Elements as desired to the Navigator. (important: drag to the Navigator, not to the Stage)
3) Ensure that no single Element exceeds 512x512, as to allow ample 'empty' space around the introduced Elements. (To make this work, the Root Grid should be set to Center-Center Alignment)

4) From the Add Element Panel, click-and-drag any Element to either of 4 'empty' corners of the Stage.

Observe how the entire Navigator hierarchy has been deleted.

Expected Results: Dragging-and-dropping an Element onto the Stage is always an additive, and not a subtractive operation

Attached Files
PlatformAny

Activities

sfernandez

sfernandez

2025-07-16 18:51

manager   ~0010915

This is probably a problem with the hit testing, when dragging the element it doesn't find the root Grid and it returns the Page as parent of the new element, deleting everything else.

dfranjic

dfranjic

2026-04-08 03:31

developer   ~0012171

Don't see a problem with the hit test or anything in this video.
When you have a <Border><Rectangle/></Border> and try to drag an Ellipse into a Border, it'll replace the current content because Border can host only 1 child, so it can't be an additive operation.
This was done by design. The same thing applies to the Page (like in this clip), it can host only 1 element, so when you try to drag an element to it it'll replace the contents.

dstewart

dstewart

2026-04-08 11:32

developer   ~0012178

After reading your comment, I think the problem here is that when you attempt to do a similar operation in the Navigator (Like dragging an Element into a single-child Panel), we prevent you from doing this (red warning tooltip label). This prevents you from commiting a destruction action, and we basically make you intentionally clear the Panel's contents manually.
So my recommendation here would be to apply the exact same rules and mindset as it works in the Navigator:
1) Prevent you from dragging in an Element that makes a destructive replacement of what's already on-Stage/in the Navigator.
2) Accompany the mouse cursor, when attempting to do so, with the exact same red warning label as when you attempt to drag an Element into a single-child Panel.

Issue History

Date Modified Username Field Change
2025-07-16 15:08 dstewart New Issue
2025-07-16 15:08 dstewart File Added: DragElementToReplaceAll_Compressed.mp4
2025-07-16 18:51 sfernandez Assigned To => maherne
2025-07-16 18:51 sfernandez Status new => assigned
2025-07-16 18:51 sfernandez Target Version => Studio_Beta
2025-07-16 18:51 sfernandez Note Added: 0010915
2025-10-27 14:18 dstewart Description Updated
2026-04-08 03:31 dfranjic Note Added: 0012171
2026-04-08 11:32 dstewart Note Added: 0012178
2026-04-09 16:16 dstewart Assigned To maherne => dfranjic
2026-04-09 16:16 dstewart Target Version Studio_Beta => 4.0
2026-04-16 03:47 dfranjic Status assigned => resolved
2026-04-16 03:47 dfranjic Resolution open => fixed