protected override void OnSizeAllocated(double width, double height) { base.OnSizeAllocated(width, height); if (PageCalcViewModel.Singleton(this).Dimensions.Width != width || PageCalcViewModel.Singleton(this).Dimensions.Height != height) { PageCalcViewModel.Singleton(this).Dimensions = new Size(width, height); } }
public PageCalc() { this.BindingContext = PageCalcViewModel.Singleton(this); InitializeComponent(); }