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

[Desktop] Translation not working when window shown for the first time #18998

Closed
kucint opened this issue Dec 4, 2024 · 0 comments · Fixed by #19004
Closed

[Desktop] Translation not working when window shown for the first time #18998

kucint opened this issue Dec 4, 2024 · 0 comments · Fixed by #19004
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

@kucint
Copy link

kucint commented Dec 4, 2024

Current behavior

Create simple app, exactly as learn.microsoft.depth-shadow proposes it:

<ScrollViewer>
    <Grid Background="White">
        <Grid.Resources>
            <ThemeShadow x:Name="SharedShadow" />
        </Grid.Resources>

        <Grid x:Name="BackgroundGrid" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" />

        <Rectangle x:Name="Rectangle1" Height="100" Width="100" Fill="Turquoise" Shadow="{StaticResource SharedShadow}" />

        <Rectangle x:Name="Rectangle2" Height="100" Width="100" Fill="Turquoise" Shadow="{StaticResource SharedShadow}" />
    </Grid>
</ScrollViewer>
private void MainPage_Loaded(object sender, RoutedEventArgs e)
{
    /// Add BackgroundGrid as a shadow receiver and elevate the casting buttons above it
    SharedShadow.Receivers.Add(BackgroundGrid);

    Rectangle1.Translation += new Vector3(0, 0, 16);
    Rectangle2.Translation += new Vector3(120, 0, 132);
}

On WindowsAppSDK it shows two rectangles as expected:
image

On Desktop it shows two rectangles that overlap:
image

Then, resize the main window to trigger content refresh: two rectangles are shown as expected:
image

Expected behavior

No response

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

MINIMAL REPRO PROJECT: UnoShadowApp.zip

Workaround

No response

Works on UWP/WinUI

Yes

Environment

No response

NuGet package version(s)

"Uno.Sdk": "5.5.49"

Affected platforms

No response

IDE

Visual Studio 2022

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

@kucint kucint 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 Dec 4, 2024
@MartinZikmund MartinZikmund self-assigned this Dec 4, 2024
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.

2 participants