This file contains hidden or 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
| public static void Fade (this UIView view, bool isIn, double duration = 0.3, Action onFinished = null) | |
| { | |
| var minAlpha = (nfloat)0.0f; | |
| var maxAlpha = (nfloat)1.0f; | |
| view.Alpha = isIn ? minAlpha : maxAlpha; | |
| view.Transform = CGAffineTransform.MakeIdentity (); | |
| UIView.Animate (duration, 0, UIViewAnimationOptions.CurveEaseInOut, | |
| () => { | |
| view.Alpha = isIn ? maxAlpha : minAlpha; |
This file contains hidden or 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
| // | |
| // ImageMeter.cs | |
| // Created by Alexey Kinev on 9 May 2015. | |
| // | |
| // No Rights Reserved | |
| // http://creativecommons.org/publicdomain/zero/1.0/ | |
| // | |
| // Get image size by name in Xamarin.Forms for iOS and Android platforms. | |
| // | |
| using System; |
This file contains hidden or 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
| // | |
| // Avatar.cs | |
| // Created by Alexey Kinev on 26 Feb 2015. | |
| // | |
| // Licensed under The MIT License (MIT) | |
| // http://opensource.org/licenses/MIT | |
| // | |
| // Simple rounded avatar class example for Xamarin.Forms. | |
| // | |
| using System; |
This file contains hidden or 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
| // | |
| // TextMeter.cs | |
| // Created by Alexey Kinev on 11 Feb 2015. | |
| // | |
| // Licensed under The MIT License (MIT) | |
| // http://opensource.org/licenses/MIT | |
| // | |
| // Copyright (c) 2015 Alexey Kinev <alexey.rudy@gmail.com> | |
| // | |
| // Usage example: |
This file contains hidden or 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
| // | |
| // Countdown.cs | |
| // Created by Alexey Kinev on 11 Jan 2015. | |
| // | |
| // Licensed under The MIT License (MIT) | |
| // http://opensource.org/licenses/MIT | |
| // | |
| // Copyright (c) 2015 Alexey Kinev <alexey.rudy@gmail.com> | |
| // | |
| using System; |
This file contains hidden or 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
| // | |
| // Badge.cs | |
| // Created by Alexey Kinev on 19 Jan 2015. | |
| // | |
| // Licensed under The MIT License (MIT) | |
| // http://opensource.org/licenses/MIT | |
| // | |
| // Copyright (c) 2015 Alexey Kinev <alexey.rudy@gmail.com> | |
| // | |
| using System; |