本文整理匯總了C#中Xamarin.Forms.View.ScaleTo方法的典型用法代碼示例。如果您正苦於以下問題:C# View.ScaleTo方法的具體用法?C# View.ScaleTo怎麽用?C# View.ScaleTo使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Xamarin.Forms.View
的用法示例。
在下文中一共展示了View.ScaleTo方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: AnimateItem
private async Task AnimateItem(View uiElement, uint duration ){
while (_animate) {
await uiElement.ScaleTo(1.05, duration, Easing.SinInOut);
await Task.WhenAll (
uiElement.FadeTo(1, duration, Easing.SinInOut),
uiElement.LayoutTo (new Rectangle( new Point(0,0), new Size( uiElement.Width, uiElement.Height))),
uiElement.FadeTo(.9, duration, Easing.SinInOut),
uiElement.ScaleTo(1.15, duration, Easing.SinInOut)
);
}
}
示例2: Animateview
public async void Animateview(View view, uint rate)
{
await view.ScaleTo(0, rate, Easing.CubicIn);
await view.ScaleTo(1, rate, Easing.CubicInOut);
}
示例3: AnimateItem
private async Task AnimateItem( View uiElement, uint duration ){
if (uiElement == null) {
return;
}
await Task.WhenAll (new Task[] {
uiElement.ScaleTo(1.5, duration, Easing.CubicIn),
uiElement.FadeTo(1, duration/2, Easing.CubicInOut).ContinueWith(
_ => uiElement.ScaleTo(1, duration, Easing.CubicOut))
});
}