Skip to content

Commit 7fcecc3

Browse files
committed
Minor clean-up
1 parent 536f973 commit 7fcecc3

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

Samples/Islands/DrawingIsland/DrawingCsTestApp/LottieIslandScenario.cs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
1-
using CommunityToolkit.WinAppSDK.LottieIsland;
1+
using Microsoft.UI.Composition;
2+
using CommunityToolkit.WinAppSDK.LottieIsland;
23
using CommunityToolkit.WinAppSDK.LottieWinRT;
3-
using Microsoft.UI.Composition;
44

55
class LottieIslandScenario
66
{
77
public static LottieContentIsland CreateLottieIsland(Compositor compositor)
88
{
99
var lottieIsland = LottieContentIsland.Create(compositor);
10-
var lottieVisualSource = LottieVisualSourceWinRT.CreateFromString("ms-appx:///Assets/LottieLogo1.json");
10+
var lottieVisualSource = LottieVisualSourceWinRT.CreateFromString(
11+
"ms-appx:///Assets/LottieLogo1.json");
1112

1213
if (lottieVisualSource != null)
1314
{
1415
lottieVisualSource.AnimatedVisualInvalidated += (sender, args) =>
1516
{
1617
object? diagnostics = null;
17-
IAnimatedVisualFrameworkless? animatedVisual = lottieVisualSource.TryCreateAnimatedVisual(compositor, out diagnostics);
18+
IAnimatedVisualFrameworkless? animatedVisual =
19+
lottieVisualSource.TryCreateAnimatedVisual(compositor, out diagnostics);
20+
1821
if (animatedVisual != null)
1922
{
20-
// This callback comes back on a different thread, so set the AnimatedVisual on the UI thread
23+
// This callback comes back on a different thread, so set the AnimatedVisual on
24+
// the UI thread
2125
compositor.DispatcherQueue.TryEnqueue(async () =>
2226
{
2327
lottieIsland.AnimatedVisual = animatedVisual;

Samples/Islands/DrawingIsland/DrawingCsTestApp/Program.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
// Copyright (c) Microsoft Corporation.
1+
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

44
using System;
5-
using System.Diagnostics;
65

76
using Microsoft.UI;
87
using Microsoft.UI.Composition;

Samples/nuget.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
</packageRestore>
1010
<packageSources>
1111
<clear />
12+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
13+
1214
<!-- a local directory to allow testing nupkg files without pushing to a remote feed -->
1315
<add key="localpackages" value="localpackages" />
1416
<add key="CommunityToolkit-PullRequests" value="https://pkgs.dev.azure.com/dotnet/CommunityToolkit/_packaging/CommunityToolkit-PullRequests/nuget/v3/index.json" />

0 commit comments

Comments
 (0)