Skip to content

Instantly share code, notes, and snippets.

@matsukurou
Created July 4, 2015 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matsukurou/758ff5b27b6ba36fa6e6 to your computer and use it in GitHub Desktop.
Save matsukurou/758ff5b27b6ba36fa6e6 to your computer and use it in GitHub Desktop.
Xamarin.Formsでビューに回転アニメーションを設定する
{
// 前面アニメーション用のボックスを生成
var boxViewFront = new BoxView
{
Color = Color.Blue,
};
// 回転アニメ制御用のボタンを生成
var buttonRelRotate = new Button
{
Text = "RelRotate",
};
// ボタン押し時の挙動
buttonRelRotate.Clicked += (sender, e) =>
{
// ボタンが押されるたびにボックスを30度ずつ回転させる
boxViewFront.RelRotateTo(30, 500);
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment