private static void OnMentionOneChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
 {
     var v = (string)e.NewValue;
     if (v == null)
         return;
     var inteli = GetInteligence(d);
     if (inteli == null)
     {
         SetInteligence(d, inteli = new TabCompletionInterService());
         inteli.InstallTextBoxHook((TextBox)d);
     }
     inteli.AddWord("@" + v + ":");
 }
        private static void OnReferencesChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            var inteli = GetInteligence(d);
            if (inteli == null)
            {
                SetInteligence(d, inteli = new TabCompletionInterService());
                inteli.InstallTextBoxHook((TextBox)d);
            }
            var v = (string)e.NewValue;
            if (v == null)
                return;
            inteli.Add("//@", v);

        }
 public static void SetInteligence(DependencyObject o, TabCompletionInterService value)
 {
     o.SetValue(InteligenceProperty, value);
 }