Exemple #1
0
        public EditorPopup(PageCalcViewModel pcvm)
        {
            _pcvm = pcvm;
            InitializeComponent();
            string str = _pcvm.Commands[_pcvm.Commands.Count - 1];

            TheEditor.Text = str;
        }
Exemple #2
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);
     }
 }
Exemple #3
0
 public PageCalc()
 {
     this.BindingContext = PageCalcViewModel.Singleton(this);
     InitializeComponent();
 }