0%

CompositionHelper

MakeLongShadow

1
2
3
4
5
6
7
8
<Grid Background="DarkRed">
<Rectangle x:Name="ShadowElement" />
<TextBlock x:Name="TextBlockElement"
FontSize="148"
FontWeight="Bold"
Foreground="Orange"
Text="00:10:15" />
</Grid>
1
CompositionHelper.MakeLongShadow(188, 0.3f, TextBlockElement, ShadowElement, Color.FromArgb(255, 250, 110, 93));

Demo

you can run demo and see this feature.

WinUICommunity