Esempio n. 1
0
        async void Editor_TextChanged(object sender, EventArgs e)
        {
            if (!istypeset)
            {
                istypeset = true;
            }
            SetValue(TextProperty, Editor.Text);
            if (istypeset)
            {
                istypeset = false;
            }

            if (this.EditerType == EditerType.CSharp)
            {
                if (!string.IsNullOrEmpty(Editor.Text))
                {
                    if (EditorTextChanged != null)
                    {
                        EditorTextChanged(this, null);
                    }

                    var definitions = _interactiveManager.GetGrammarDefinitionList();
                    if (definitions != null)
                    {
                        this.childrenDropDown.ItemsSource   = null;
                        this.definitionDropDown.ItemsSource = definitions;
                    }
                }
            }
        }