public EditorPopup(PageCalcViewModel pcvm) { _pcvm = pcvm; InitializeComponent(); string str = _pcvm.Commands[_pcvm.Commands.Count - 1]; TheEditor.Text = str; }
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(); }