Example #1
0
        /// <summary>
        /// The dependency property for has changed.
        /// Chnage the <seealso cref="SolidColorBrush"/> to be used for highlighting the current editor line
        /// in the particular <seealso cref="EdiView"/> control.
        /// </summary>
        /// <param name="d"></param>
        /// <param name="e"></param>
        private static void OnCurrentLineBackgroundChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            DAXEditor view = d as DAXEditor;

            if (view != null && e != null)
            {
                SolidColorBrush newValue = e.NewValue as SolidColorBrush;

                if (newValue != null)
                {
                    view.EditorCurrentLineBackground = newValue;
                    //view.AdjustCurrentLineBackground(newValue);
                }
            }
        }
 public DaxIntellisenseProvider(DocumentViewModel activeDocument, DAXEditor.DAXEditor editor)
 {
     Document = activeDocument;
     _editor = editor;
 }