Share D2D1 rendering code between UWP/WinUI samples

このコミットが含まれているのは:
Sergio Pedri committed 2023-04-20 20:07:18 +02:00
1 親 63ce21aa06
コミット 7254f1774c
10ファイル変更
+64 -28

検索条件に一致するファイルはありません

+16
ファイルの表示
@@ -0,0 +1,16 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:ComputeSharp.SwapChain.WinUI.Views"
xmlns:win2d="using:Microsoft.Graphics.Canvas.UI.Xaml">
<Style TargetType="local:D2D1AnimatedPixelShaderPanel">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:D2D1AnimatedPixelShaderPanel">
<win2d:CanvasAnimatedControl x:Name="PART_CanvasAnimatedControl" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>