@@ -16,35 +16,27 @@ private void CreateDrawingIslandMenuItem_Click(object sender, RoutedEventArgs e)
16
16
var wpfIslandHost = new WpfIslandHost ( _compositor ) ;
17
17
var drawingIsland = new DrawingIslandComponents . DrawingIsland ( _compositor ) ;
18
18
19
- // After this, the WpfIslandHost will be live, and the DesktopChildSiteBridge will be available.
20
19
DisplayAreaBorder . Child = wpfIslandHost ;
21
-
22
20
wpfIslandHost . DesktopChildSiteBridge . Connect ( drawingIsland . Island ) ;
23
21
}
24
22
25
23
private void CreateLottieIslandMenuItem_Click ( object sender , RoutedEventArgs e )
26
24
{
27
25
var wpfIslandHost = new WpfIslandHost ( _compositor ) ;
28
- _lottieContentIsland = LottieIslandScenario . CreateLottieIsland ( _compositor ) ;
26
+ var lottieContentIsland = LottieIslandScenario . CreateLottieIsland ( _compositor ) ;
29
27
30
- // After this, the WpfIslandHost will be live, and the DesktopChildSiteBridge will be available.
31
28
DisplayAreaBorder . Child = wpfIslandHost ;
32
-
33
- wpfIslandHost . DesktopChildSiteBridge . Connect ( _lottieContentIsland . Island ) ;
29
+ wpfIslandHost . DesktopChildSiteBridge . Connect ( lottieContentIsland . Island ) ;
34
30
}
35
31
36
32
private async void CreateSceneNodeIslandMenuItem_Click ( object sender , RoutedEventArgs e )
37
33
{
38
34
var wpfIslandHost = new WpfIslandHost ( _compositor ) ;
39
35
var helmetIsland = await HelmetScenario . CreateIsland ( _compositor ) ;
40
36
41
- // After this, the WpfIslandHost will be live, and the DesktopChildSiteBridge will be available.
42
37
DisplayAreaBorder . Child = wpfIslandHost ;
43
-
44
38
wpfIslandHost . DesktopChildSiteBridge . Connect ( helmetIsland ) ;
45
39
}
46
-
47
- LottieContentIsland _lottieContentIsland ;
48
40
}
49
41
}
50
42
0 commit comments