Catrobat.IDE.WindowsPhone.Views.Editor.Formula.FormulaEditorView.FormulaEditorView_OnLoaded C# (CSharp) Method

FormulaEditorView_OnLoaded() private method

private FormulaEditorView_OnLoaded ( object sender, RoutedEventArgs e ) : void
sender object
e Windows.UI.Xaml.RoutedEventArgs
return void
        private void FormulaEditorView_OnLoaded(object sender, RoutedEventArgs e)
        {
            this.FormulaViewerMain.SetBinding(FormulaViewer.TokensProperty, new Binding { Path = new PropertyPath("Tokens"), Mode = BindingMode.OneWay });
            this.FormulaViewerMain.SetBinding(FormulaViewer.CaretIndexProperty, new Binding { Path = new PropertyPath("CaretIndex"), Mode = BindingMode.TwoWay });
            this.FormulaViewerMain.SetBinding(FormulaViewer.SelectionStartProperty, new Binding { Path = new PropertyPath("SelectionStart"), Mode = BindingMode.TwoWay });
            this.FormulaViewerMain.SetBinding(FormulaViewer.SelectionLengthProperty, new Binding { Path = new PropertyPath("SelectionLength"), Mode = BindingMode.TwoWay });
            this.FormulaKeyboard.SetBinding(Controls.FormulaControls.FormulaKeyboard.CanDeleteProperty, new Binding { Path = new PropertyPath("CanDelete") });
            this.FormulaKeyboard.SetBinding(Controls.FormulaControls.FormulaKeyboard.CanEvaluateProperty, new Binding { Path = new PropertyPath("CanEvaluate") });
            this.FormulaKeyboard.SetBinding(Controls.FormulaControls.FormulaKeyboard.HasErrorProperty, new Binding { Path = new PropertyPath("HasError") });
            this.FormulaKeyboard.SetBinding(Controls.FormulaControls.FormulaKeyboard.ProgramProperty, new Binding { Path = new PropertyPath("CurrentProgram") });
            
            //_viewModel.PropertyChanged += ViewModel_OnPropertyChanged;
        }