Example #1
0
 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);
     }
 }
Example #2
0
 public PageCalc()
 {
     this.BindingContext = PageCalcViewModel.Singleton(this);
     InitializeComponent();
 }