Skip to content

Commit 5ec6a87

Browse files
Porting the Connected Animations sample (#180)
* Minor implicit sample tweak * Adding Connected Animations sample * XAML styler * Changes * Renamed duplicate files --------- Co-authored-by: Arlo Godfrey <arlo.godfrey@outlook.com>
1 parent 0a354dc commit 5ec6a87

20 files changed

+564
-5
lines changed

components/Animations/samples/Animations.Samples.csproj

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,36 @@
55

66
<!-- Sets this up as a toolkit component's sample project -->
77
<Import Project="$(ToolingDirectory)\ToolkitComponent.SampleProject.props" />
8+
<ItemGroup>
9+
<None Remove="Assets\BigFourSummerHeat2.jpg" />
10+
<None Remove="Assets\BisonBadlandsChillin2.jpg" />
11+
<None Remove="Assets\ColumbiaRiverGorge.jpg" />
12+
<None Remove="Assets\GrandTetons.jpg" />
13+
<None Remove="Assets\MitchellButtes.jpg" />
14+
<None Remove="Assets\OregonWineryNamaste.jpg" />
15+
<None Remove="Assets\RunningDogPacificCity.jpg" />
16+
</ItemGroup>
17+
<ItemGroup>
18+
<Content Include="Assets\BigFourSummerHeat2.jpg">
19+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
20+
</Content>
21+
<Content Include="Assets\BisonBadlandsChillin2.jpg">
22+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
23+
</Content>
24+
<Content Include="Assets\ColumbiaRiverGorge.jpg">
25+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
26+
</Content>
27+
<Content Include="Assets\GrandTetons.jpg">
28+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
29+
</Content>
30+
<Content Include="Assets\MitchellButtes.jpg">
31+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
32+
</Content>
33+
<Content Include="Assets\OregonWineryNamaste.jpg">
34+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
35+
</Content>
36+
<Content Include="Assets\RunningDogPacificCity.jpg">
37+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
38+
</Content>
39+
</ItemGroup>
840
</Project>

components/Animations/samples/AnimationsImplicitSample.xaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
1+
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
22
<Page x:Class="AnimationsExperiment.Samples.AnimationsImplicitSample"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
@@ -8,10 +8,9 @@
88
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
99
xmlns:ui="CommunityToolkit.WinUI"
1010
mc:Ignorable="d">
11-
<Grid>
11+
<Grid Height="480">
1212
<Grid.RowDefinitions>
13-
<RowDefinition Height="*"
14-
MinHeight="420" />
13+
<RowDefinition Height="*" />
1514
<RowDefinition Height="Auto" />
1615
</Grid.RowDefinitions>
1716
<Canvas>
@@ -20,7 +19,8 @@
2019
Canvas.Top="100"
2120
Width="100"
2221
Height="100"
23-
Background="{ThemeResource AccentFillColorDefaultBrush}">
22+
Background="{ThemeResource AccentFillColorDefaultBrush}"
23+
CornerRadius="{StaticResource ControlCornerRadius}">
2424

2525
<animations:Implicit.ShowAnimations>
2626
<animations:TranslationAnimation From="0, -200, 0"
Loading
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)