Skip to content

Instantly share code, notes, and snippets.

View jamsoft's full-sized avatar
🏠
Working from home

Jammer jamsoft

🏠
Working from home
View GitHub Profile
@jamsoft
jamsoft / BaseViewController.cs
Last active May 8, 2017 12:26 — forked from redent/ParentViewController.Keyboard.cs
Parent view controller to handle keyboard notifications to center views in the screen. UIScrollView related methods moved to an extension class.
using Cirrious.MvvmCross.Touch.Views;
using UIKit;
using CoreGraphics;
using Foundation;
namespace MyApp.Touch.Views
{
public class BaseViewController<TViewModel> : MvxViewController where TViewModel : MyBaseViewModelType
{
#region Fields
@jamsoft
jamsoft / BaseViewModel.cs
Last active October 21, 2017 17:01
View Model Value Change Tracking in MvvmCross
public class MyBaseVm : MvxViewModel
{
#region IsDirty
private string _cleanHash;
protected string CleanHash
{
get { return _cleanHash; }
}