Skip to content

Commit bf4310a

Browse files
committed
Fix StoreCarousel Color Always Transparent issue
1 parent 20d9c05 commit bf4310a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dev/DevWinUI/Controls/Win2DAndComposition/ImageFrame/ImageFrame.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
public sealed partial class ImageFrame : Control, IDisposable
88
{
99
private CanvasDevice device;
10-
private Color _shadowColor = Colors.Transparent;
10+
internal Color _shadowColor = Colors.Transparent;
1111
private Dictionary<Uri, Color?> cachedImagesColorDic = new Dictionary<Uri, Color?>();
1212
internal bool useImageEdgeOverContentColor = true;
1313
#region Enums

dev/DevWinUI/Controls/Win2DAndComposition/StoreCarousel/StoreCarousel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ private async void UpdateVisuals()
425425

426426
if (image != null)
427427
{
428-
color = image.ShadowColor;
428+
color = image._shadowColor;
429429
}
430430

431431
fadeRectangle.Width = image.ActualWidth * 0.4;

0 commit comments

Comments
 (0)