Skip to content

Commit b305088

Browse files
Update Microsoft.Toolkit.Uwp.UI.Controls/TileControl/TileControl.cs
Co-authored-by: Michael Hawker MSFT (XAML Llama) <[email protected]>
1 parent 2ceaf28 commit b305088

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Microsoft.Toolkit.Uwp.UI.Controls/TileControl/TileControl.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,12 +500,12 @@ string GenerateFormula(string common, string dimension)
500500
expressionX.SetReferenceParameter(scrollParam, scrollProperties);
501501
expressionY.SetReferenceParameter(scrollParam, scrollProperties);
502502

503-
string GenerateParalaxFormula(string scrollTranslation, string speed, string offset, string dimension)
503+
string GenerateParallaxFormula(string scrollTranslation, string speed, string offset, string dimension)
504504
=> GenerateFormula(string.Format("Ceil(({0} * {1}) + {2})", scrollTranslation, speed, offset), dimension);
505505

506-
expressionXVal = GenerateParalaxFormula(translationParam + "." + nameof(scrollViewer.Translation.X), qualifiedSpeedParam, qualifiedOffsetXParam, qualifiedImageWidthParam);
506+
expressionXVal = GenerateParallaxFormula(translationParam + "." + nameof(scrollViewer.Translation.X), qualifiedSpeedParam, qualifiedOffsetXParam, qualifiedImageWidthParam);
507507

508-
expressionYVal = GenerateParalaxFormula(translationParam + "." + nameof(scrollViewer.Translation.Y), qualifiedSpeedParam, qualifiedOffsetYParam, qualifiedImageHeightParam);
508+
expressionYVal = GenerateParallaxFormula(translationParam + "." + nameof(scrollViewer.Translation.Y), qualifiedSpeedParam, qualifiedOffsetYParam, qualifiedImageHeightParam);
509509
}
510510

511511
if (scrollOrientation == ScrollOrientation.Horizontal || scrollOrientation == ScrollOrientation.Both)

0 commit comments

Comments
 (0)