Skip to content

Commit 891ed22

Browse files
authored
Merge pull request #600 from shenchauhan/documentation
Updating Animation Documentation
2 parents 78d36c4 + 948f26b commit 891ed22

File tree

5 files changed

+68
-12
lines changed

5 files changed

+68
-12
lines changed

docs/animations/Blur.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ You can either use the blur behavior from your XAML code:
1414
<interactivity:Interaction.Behaviors>
1515
<behaviors:Blur x:Name="BlurBehavior"
1616
Value="10"
17-
Duration="10"
18-
Delay="0"
17+
Duration="500"
18+
Delay="250"
1919
AutomaticallyStart="True"/>
2020
</interactivity:Interaction.Behaviors>
2121

@@ -25,10 +25,20 @@ or directly from code:
2525

2626
```csharp
2727

28-
ToolkitLogo.Blur(value: 10, duration: 10, delay: 0);
28+
ToolkitLogo.Blur(value: 10, duration: 500, delay: 250);
2929

3030
```
3131

32+
## Properties
33+
34+
| Property Name | Type | Description |
35+
| --- | --- | --- |
36+
| Value | double | The amount of Gaussian blur to apply to the pixel |
37+
| Duration | double | The number of milliseconds the animation should run for |
38+
| Delay | double | The number of milliseconds before the animation is started |
39+
40+
## Chaining animations
41+
3242
Behavior animations can also be chained and awaited.
3343

3444
```csharp

docs/animations/Fade.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ The **Fade animation behavior** fades objects, in and out, over time.
77
```xaml
88

99
<behaviors:Fade x:Name="FadeBehavior>"
10-
Value="10.0"
11-
Duration="1.5"
12-
Delay="0.5"
10+
Value="0.5"
11+
Duration="1500"
12+
Delay="500"
1313
AutomaticallyStart="True">
1414
</behaviors:Fade>
1515

@@ -23,6 +23,16 @@ or directly from code:
2323

2424
```
2525

26+
## Properties
27+
28+
| Property Name | Type | Description |
29+
| --- | --- | --- |
30+
| Value | float | The amount to fade an element. The value should be between 0.0 and l.0 |
31+
| Duration | double | The number of milliseconds the animation should run for |
32+
| Delay | double | The number of milliseconds before the animation is started |
33+
34+
## Chaining animations
35+
2636
Behavior animations can also be chained and awaited.
2737

2838
```csharp

docs/animations/Offset.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ The **Offset animation behavior** gets the number of pixels, from the origin of
99
<behaviors:Offset x:Name="OffsetBehavior"
1010
OffsetX="25.0"
1111
OffsetY="25.0"
12-
Duration="2.0"
13-
Delay="0.5"
12+
Duration="500"
13+
Delay="250"
1414
AutomaticallyStart="True"/>
1515
</behaviors:Offset>
1616

@@ -28,6 +28,17 @@ MyRectangle.Offset(
2828

2929
```
3030

31+
## Properties
32+
33+
| Property Name | Type | Description |
34+
| --- | --- | --- |
35+
| OffsetX | float | The number of pixels to move along the x axis |
36+
| OffsetY | float | The number of pixels to move along the y axis |
37+
| Duration | double | The number of milliseconds the animation should run for |
38+
| Delay | double | The number of milliseconds before the animation is started |
39+
40+
## Chaining animations
41+
3142
Behavior animations can also be chained and awaited.
3243

3344
```csharp

docs/animations/Rotate.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ The **Rotate animation behavior** allows users to modify and animate the control
1010
Value="180"
1111
CenterX="0.0"
1212
CenterY="0.0"
13-
Duration="1.5"
14-
Delay="0.5"
13+
Duration="500"
14+
Delay="250"
1515
AutomaticallyStart="True"/>
1616
</behaviors:Rotate>
1717

@@ -30,6 +30,18 @@ or directly from code:
3030

3131
```
3232

33+
## Properties
34+
35+
| Property Name | Type | Description |
36+
| --- | --- | --- |
37+
| Value | float | The rotation of the element in degrees |
38+
| CenterX | float | The pivot point on the x axis |
39+
| CenterY | float | The pivot point on the y axis |
40+
| Duration | double | The number of milliseconds the animation should run for |
41+
| Delay | double | The number of milliseconds before the animation is started |
42+
43+
## Chaining animations
44+
3345
Behavior animations can also be chained and awaited.
3446

3547
```csharp

docs/animations/Scale.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ The **Scale animation behavior** allows you to change a control's scale by incre
1212
ScaleY="2.0"
1313
CenterX="0.0"
1414
CenterY="0.0"
15-
Duration="1.0"
16-
Delay="0.5"
15+
Duration="1000"
16+
Delay="500"
1717
AutomaticallyStart="True"/>
1818
</interactivity:Interaction.Behaviors>
1919

@@ -33,6 +33,19 @@ MyRectangle.Scale(
3333

3434
```
3535

36+
## Properties
37+
38+
| Property Name | Type | Description |
39+
| --- | --- | --- |
40+
| ScaleX | float | The scale of the element along the x axis |
41+
| ScaleY | float | The scale of the element along the y axis |
42+
| CenterX | float | The pivot point on the x axis |
43+
| CenterY | float | The pivot point on the y axis |
44+
| Duration | double | The number of milliseconds the animation should run for |
45+
| Delay | double | The number of milliseconds before the animation is started |
46+
47+
## Chaining animations
48+
3649
Behaviors can also be chained and awaited.
3750

3851
```csharp

0 commit comments

Comments
 (0)