Skip to content

Commit 9f4aec3

Browse files
committed
Minor clean-up for //build
1 parent 6d3df7a commit 9f4aec3

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Samples/Islands/WpfCalculator/CalculatorDemo/MainWindow_Demo4.cs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,35 +16,27 @@ private void CreateDrawingIslandMenuItem_Click(object sender, RoutedEventArgs e)
1616
var wpfIslandHost = new WpfIslandHost(_compositor);
1717
var drawingIsland = new DrawingIslandComponents.DrawingIsland(_compositor);
1818

19-
// After this, the WpfIslandHost will be live, and the DesktopChildSiteBridge will be available.
2019
DisplayAreaBorder.Child = wpfIslandHost;
21-
2220
wpfIslandHost.DesktopChildSiteBridge.Connect(drawingIsland.Island);
2321
}
2422

2523
private void CreateLottieIslandMenuItem_Click(object sender, RoutedEventArgs e)
2624
{
2725
var wpfIslandHost = new WpfIslandHost(_compositor);
28-
_lottieContentIsland = LottieIslandScenario.CreateLottieIsland(_compositor);
26+
var lottieContentIsland = LottieIslandScenario.CreateLottieIsland(_compositor);
2927

30-
// After this, the WpfIslandHost will be live, and the DesktopChildSiteBridge will be available.
3128
DisplayAreaBorder.Child = wpfIslandHost;
32-
33-
wpfIslandHost.DesktopChildSiteBridge.Connect(_lottieContentIsland.Island);
29+
wpfIslandHost.DesktopChildSiteBridge.Connect(lottieContentIsland.Island);
3430
}
3531

3632
private async void CreateSceneNodeIslandMenuItem_Click(object sender, RoutedEventArgs e)
3733
{
3834
var wpfIslandHost = new WpfIslandHost(_compositor);
3935
var helmetIsland = await HelmetScenario.CreateIsland(_compositor);
4036

41-
// After this, the WpfIslandHost will be live, and the DesktopChildSiteBridge will be available.
4237
DisplayAreaBorder.Child = wpfIslandHost;
43-
4438
wpfIslandHost.DesktopChildSiteBridge.Connect(helmetIsland);
4539
}
46-
47-
LottieContentIsland _lottieContentIsland;
4840
}
4941
}
5042

0 commit comments

Comments
 (0)