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 class FirstViewModel | |
| : MvxViewModel | |
| { | |
| private string _firstName; | |
| public string FirstName | |
| { | |
| get { return _firstName; } | |
| set { _firstName = value; RaisePropertyChanged(() => FirstName); } | |
| } |
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 class FirstViewModel | |
| : MvxViewModel | |
| { | |
| public readonly INC<string> FirstName = new NC<string>(""); | |
| public readonly INC<string> LastName = new NC<string>(""); | |
| public readonly INC<TitleResponse> Title = new NC<TitleResponse>(); | |
| public readonly INC<bool> Accepted = new NC<bool>(); | |
| public readonly ObservableCollection<Person> People = new ObservableCollection<Person>(); |
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 class FirstViewModel | |
| : MvxViewModel | |
| { | |
| public string FirstName { get; set; } | |
| public string LastName { get; set; } | |
| public string FullName | |
| { | |
| get { return string.Format("{0} {1}", FirstName, LastName); } | |
| } |
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 class FirstViewModel | |
| : MvxViewModel | |
| { | |
| private string _firstName; | |
| public string FirstName | |
| { | |
| get { return _firstName; } | |
| set { _firstName = value; RaisePropertyChanged(() => FirstName); RaisePropertyChanged(() => FullName); } | |
| } | |
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
| var animation = new DoubleAnimation(); | |
| animation.From = 1; | |
| animation.To = 0; | |
| animation.Duration = new Duration(TimeSpan.FromMilliseconds(200)); | |
| animation.Completed += (sender, args) => | |
| { | |
| control.TheTextBlock.Text = newText; | |
| var fadeInAnimation = new DoubleAnimation(); | |
| fadeInAnimation.From = 0.0; |
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
| var animationFadeOut = new AlphaAnimation(1.0f, 0.0f); | |
| animationFadeOut.Duration = 200; | |
| animationFadeOut.AnimationEnd += (sender, args) => | |
| { | |
| base.Text = value; | |
| var animationFadeIn = new AlphaAnimation(0.0f, 1.0f); | |
| animationFadeIn.Duration = 200; | |
| this.Animation = animationFadeIn; | |
| }; |
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
| UIView.Animate( | |
| 0.25, | |
| () => | |
| { | |
| Alpha = 0; | |
| }, | |
| () => | |
| { | |
| Text = value; | |
| UIView.Animate(0.25, |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:local="http://schemas.android.com/apk/res-auto" | |
| android:orientation="vertical" | |
| android:layout_width="fill_parent" | |
| android:layout_height="fill_parent"> | |
| <LinearLayout | |
| android:orientation="vertical" | |
| android:layout_width="fill_parent" | |
| android:layout_height="fill_parent"> |
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 class Person | |
| { | |
| public INC<string> FirstName = new NC<string>("Fred"); | |
| public INC<string> LastName= new NC<string>("Flintstone"); | |
| } | |
| public class FirstViewModel | |
| : MvxViewModel | |
| { | |
| public INC<string> Updating = new NC<string>("Laugh"); |
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
| using System.Drawing; | |
| using Cirrious.MvvmCross.Binding.BindingContext; | |
| using CrossUI.Touch.Dialog.Elements; | |
| using MonoTouch.CoreGraphics; | |
| using MonoTouch.UIKit; | |
| using One.Core.ViewModels; | |
| using One.Touch.DynamicSegment; | |
| namespace One.Touch.Views | |
| { |