Skip to content

Instantly share code, notes, and snippets.

public class FirstViewModel
: MvxViewModel
{
private string _firstName;
public string FirstName
{
get { return _firstName; }
set { _firstName = value; RaisePropertyChanged(() => FirstName); }
}
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>();
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); }
}
public class FirstViewModel
: MvxViewModel
{
private string _firstName;
public string FirstName
{
get { return _firstName; }
set { _firstName = value; RaisePropertyChanged(() => FirstName); RaisePropertyChanged(() => FullName); }
}
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;
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;
};
UIView.Animate(
0.25,
() =>
{
Alpha = 0;
},
() =>
{
Text = value;
UIView.Animate(0.25,
@slodge
slodge / droid.xml
Last active December 19, 2015 05:29
<?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">
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");
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
{