private void ChangeImageScale(float scale) { (float centerX, float centerY)centerXY = GetCenterXY(); PannelBackground.Scale(scaleX: scale, scaleY: scale, duration: 400, centerX: centerXY.centerX, centerY: centerXY.centerY).Start(); }
private async Task ChangeImageScaleAsync(float scale) { (float centerX, float centerY)centerXY = GetCenterXY(); await PannelBackground.Scale(scaleX : scale, scaleY : scale, duration : 400, centerX : centerXY.centerX, centerY : centerXY.centerY).StartAsync(); }