View Issue Details

IDProjectCategoryView StatusLast Update
0002774NoesisGUIStudiopublic2023-10-31 22:06
Reporterfllorens Assigned Todfranjic  
PrioritynormalSeverityminor 
Status resolvedResolutionfixed 
Target VersionStudio_Alpha 
Summary0002774: Copy paste not working on Navigator panel
Description

As seen here https://youtu.be/3C8q3FXvqKM?feature=shared&t=54 copy and paste command don't work properly or at all in the navigator panel.

Steps To Reproduce
  1. Create some elements in a page (rectangles, grids..)
  2. Rename the elements
  3. Using the context menu copy and paste an element
PlatformAny

Activities

dfranjic

dfranjic

2023-10-27 12:23

developer   ~0008887

I can't seem to reproduce this. Can you please try to find simplest way to reproduce this issue? Or provide a XAML file in which this bug occurs.

fllorens

fllorens

2023-10-27 12:45

developer   ~0008888

Yes, it works properly when they don't have a name. If the user renames them doubleclicking in the navigator panel element's name, and then copy pastes, the bug arises. I'm attaching a xaml where this behavior happens.

fllorens

fllorens

2023-10-27 12:45

developer   ~0008889

Try this one

CopyPasteBug.xaml (751 bytes)   
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      mc:Ignorable="d"
      Background="#FF4D5052">
  <Grid>
    <Rectangle x:Name="CopyPasteRectangle" Fill="#FFF4F4F5" Stroke="#FF000000" VerticalAlignment="Center" Height="100" Width="100" Margin="0,66.4,359.9,0" HorizontalAlignment="Right"/>
    <Grid x:Name="CopyPasteGrid" VerticalAlignment="Center" Height="100" Width="100" Margin="15.2,80.8,0,0" HorizontalAlignment="Center">
      <Border BorderThickness="1" Background="#FF00B5FF"/>
    </Grid>
  </Grid>
</Page>
CopyPasteBug.xaml (751 bytes)   
dfranjic

dfranjic

2023-10-31 22:06

developer   ~0008919

Sorry, I somehow missed the fact that the element must have a name.
It should be fixed with r12898 -- Studio now searches for "x:Name" in the contents of the XAML before actually pasting it and replaces it's value with a name that isn't taken.
Duplicate (ALT+Drag or right click->Duplicate) now also handles the x:Name correctly (finds a non-taken name and stores it as "x:Name" rather than just "Name").

Issue History

Date Modified Username Field Change
2023-10-26 14:01 fllorens New Issue
2023-10-26 14:22 jsantos Target Version => Studio_Alpha
2023-10-27 12:23 dfranjic Note Added: 0008887
2023-10-27 12:45 fllorens Steps to Reproduce Updated
2023-10-27 12:45 fllorens Note Added: 0008888
2023-10-27 12:45 fllorens Note Added: 0008889
2023-10-27 12:45 fllorens File Added: CopyPasteBug.xaml
2023-10-30 18:26 dfranjic Assigned To => dfranjic
2023-10-30 18:26 dfranjic Status new => assigned
2023-10-31 22:06 dfranjic Status assigned => resolved
2023-10-31 22:06 dfranjic Resolution open => fixed
2023-10-31 22:06 dfranjic Note Added: 0008919