Created
July 4, 2015 11:30
-
-
Save matsukurou/758ff5b27b6ba36fa6e6 to your computer and use it in GitHub Desktop.
Xamarin.Formsでビューに回転アニメーションを設定する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 前面アニメーション用のボックスを生成 | |
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