Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENC1002 error when deleting item with x:Name set #19433

Closed
nickrandolph opened this issue Feb 4, 2025 · 5 comments · Fixed by #19440
Closed

ENC1002 error when deleting item with x:Name set #19433

nickrandolph opened this issue Feb 4, 2025 · 5 comments · Fixed by #19440
Assignees
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification

Comments

@nickrandolph
Copy link
Contributor

Current behavior

Start with simple page that contains a Button with x:Name set

<Page x:Class="UnoApp36.MainPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:local="using:UnoApp36"
      Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
    <ScrollViewer>
        <Grid>
            <StackPanel HorizontalAlignment="Center"
                        VerticalAlignment="Center">
                <Button x:Name="MyButton" Content="Button1"  />
            </StackPanel>
        </Grid>
    </ScrollViewer>
</Page>

Run the application
Delete the Button (in XAML in VS)
Trigger HR

Image

Expected behavior

No response

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

No response

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

@nickrandolph nickrandolph added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Feb 4, 2025
@nickrandolph
Copy link
Contributor Author

Note that this happens even using the fix from #19418
ie "Uno.Sdk.Private": "5.6.44"

@jeromelaban
Copy link
Member

I cannot repro in VS 17.13 Preview 3

@dr1rrb
Copy link
Member

dr1rrb commented Feb 4, 2025

I do repro
VS 17.12.1
Sdk.Private 5.6.44

looking at it

@dr1rrb
Copy link
Member

dr1rrb commented Feb 4, 2025

Note: If I change anything before removing the button (like changing the content of the button), then I'm unable to repro

@agneszitte
Copy link
Contributor

agneszitte commented Feb 7, 2025

I am not able to reproduce this issue with latest Uno.Sdk 5.6.26.


Tested with:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants