dotnet / dotnet/wpf

View used AllowsTransparency And DropShadowEffect Causing UI Stuck

Open
#7,857 4 comments 0 reactions 0 assignees View on GitHub
Investigate
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

There is a WPF program using CM Framework 3.2. I have a replay.xaml page that displays two images and two timestamp texts every 30ms to play back videos in a modal manner.
When using the AllowsTransparency and DropShadowEffect properties on the page, opening multiple replay.xaml pages can cause the UI to refresh slowly and become sluggish.
After I delete the relevant code of AllowsTransparency and DropShadowEffect only in replay.xaml, opening multiple replay.xaml pages will not cause the UI to become sluggish.
My display settings in the code are:
AllowsTransparency = True;
Grid.Effect>
DropShadowEffect ShadowDepth="0"
BlurRadius="5"
Opacity="0.9" />
Grid.Effect>

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.