Exemple #1
0
 /// <summary>
 /// PropertyChangedCallback for ErrorLinePosition
 /// </summary>
 private static void ErrorLinePositionChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
 {
     if (obj is AgDocumentView)
     {
         AgDocumentView owner = (AgDocumentView)obj;
         // handle changed event here
     }
 }
Exemple #2
0
        /// <summary>
        /// PropertyChangedCallback for IsValidXaml
        /// </summary>
        private static void IsValidXamlChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
        {
            if (obj is AgDocumentView)
            {
                AgDocumentView owner = (AgDocumentView)obj;

                if ((bool)args.NewValue)
                {
                    owner.HideErrorUI();
                }
                else
                {
                    owner.ShowErrorUI();
                }
            }
        }