Skip to content

Commit 6b087ab

Browse files
Merge pull request #286 from MicrosoftDocs/michael-hawker-patch-1
Aligning to preferred Microsoft.UI.Xaml.Controls prefix
2 parents bd48920 + 2de22b1 commit 6b087ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/animations/lottie-scenarios/getting_started_json.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You probably have a JSON file that was exported from [Adobe AfterEffects](https:
1919
Modify your Page.xaml to include the namespace:
2020

2121
```xaml
22-
xmlns:controls="using:Microsoft.UI.Xaml.Controls"
22+
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
2323
```
2424

2525
3. Install the latest [Microsoft.Toolkit.Uwp.UI.Lottie nuget package](https://www.nuget.org/packages/Microsoft.Toolkit.Uwp.UI.Lottie/) by following steps similar to those listed above. Modify your Page.xaml to include the namespace:
@@ -37,12 +37,12 @@ You probably have a JSON file that was exported from [Adobe AfterEffects](https:
3737
5. Instantiate the [AnimatedVisualPlayer](https://docs.microsoft.com/en-us/uwp/api/microsoft.ui.xaml.controls.animatedvisualplayer) element and configure the [LottieVisualSource](https://docs.microsoft.com/dotnet/api/microsoft.toolkit.uwp.ui.lottie.lottievisualsource) to be consumed:
3838

3939
```xaml
40-
<Border Style="{StaticResource LottiePlayer}">
40+
<Border>
4141
<!--AnimatedVisualPlayer with AutoPlay-->
42-
<controls:AnimatedVisualPlayer x:Name="LottiePlayer">
42+
<muxc:AnimatedVisualPlayer x:Name="LottiePlayer">
4343
<!--LottieVisualSource with JSON UriSource-->
4444
<lottie:LottieVisualSource x:Name="LottieJsonSource" UriSource="ms-appx:///AnimatedVisuals/LottieLogo1.json"/>
45-
</controls:AnimatedVisualPlayer>
45+
</muxc:AnimatedVisualPlayer>
4646
</Border>
4747
```
4848

0 commit comments

Comments
 (0)