question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Button.Shadow Win32 Exception (Win11)

See original GitHub issue

Description

Button in two nested Grid with property Button.Shadow, throw exception on Windows Platfrom (OS: Win11)

Steps to Reproduce

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="MauiApp2.MainPage"> 

    <Grid >
        <Grid >
            <Button  >
                <Button.Shadow>
                    <Shadow Brush="Black" Offset="1,1" Radius="12"  Opacity="0.2" />
                </Button.Shadow>
            </Button>
        </Grid>
    </Grid>

</ContentPage>

Version with bug

Release Candidate 3 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows SDK 10.0.19041.0 (Win11)

Did you find any workaround?

Relevant log output

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
evelynwu-msftcommented, May 31, 2022

@JasShao You should be able to see the stack trace by doing the following:

  1. Open Properties\launchSettings.json and change the nativeDebugging key’s value from false to true
  2. Enable the Microsoft Symbol Servers in Visual Studio’s debugging symbols options (https://docs.microsoft.com/en-us/visualstudio/debugger/specify-symbol-dot-pdb-and-source-files-in-the-visual-studio-debugger?view=vs-2022#configure-location-of-symbol-files-and-loading-options)
0reactions
msftbot[bot]commented, Jul 25, 2022

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enable or Disable Show Shadows under Windows in ...
This tutorial will show you how to enable or disable showing shadows under windows for your account in Windows 10 and Windows 11....
Read more >
How to Remove Drop Shadow effect in Windows 11 & 10
Step 3: In the System Properties dialogue box, select the Advanced tab. Here, under the Performance section, click on the Settings button.
Read more >
How to fix Volume Shadow Copy Service after Windows 11 ...
When found, double-click the entry. Set the Startup type to 'Automatic (Delayed Start)' and click the Start button below it. Also configure the ......
Read more >
How to Disable Window Shadows in Windows 10 & 11
Windows 10, by default, shows a shadow around many applications. You might not notice it if using a dark theme, or hardly notice...
Read more >
Ghost Window in Windows 11 - Microsoft Q&A
This shadow is a known issue with certain windows 11 devices and a simple update will sort this out. If the update doesn't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found