/// <summary>
        ///     Returns whether or not an enumeration instance a valid value.
        ///     This method is designed to be used with ValidateValueCallback, and thus
        ///     matches it's prototype.
        /// </summary>
        /// <param name="valueObject">
        ///     Enumeration value to validate.
        /// </param>
        /// <returns> 'true' if the enumeration contains a valid value, 'false' otherwise. </returns>
        public static bool IsClearTypeHintValid(object valueObject)
        {
            ClearTypeHint value = (ClearTypeHint)valueObject;

            return((value == ClearTypeHint.Auto) ||
                   (value == ClearTypeHint.Enabled));
        }
Exemple #2
0
 /// <summary>
 /// Writes the attached property ClearTypeHint to the given object.
 /// </summary>
 public static void SetClearTypeHint(DependencyObject target, ClearTypeHint clearTypeHint)
 {
     if (target == null)
     {
         throw new ArgumentNullException("target");
     }
     target.SetValue(ClearTypeHintProperty, clearTypeHint);
 }
 public static void SetClearTypeHint(System.Windows.DependencyObject target, ClearTypeHint clearTypeHint)
 {
 }
Exemple #4
0
 /// <summary>
 /// Writes the attached property ClearTypeHint to the given object.
 /// </summary>
 public static void SetClearTypeHint(DependencyObject target, ClearTypeHint clearTypeHint)
 {
     if (target == null) { throw new ArgumentNullException("target"); }
     target.SetValue(ClearTypeHintProperty, clearTypeHint);
 } 
 public static void SetClearTypeHint(System.Windows.DependencyObject target, ClearTypeHint clearTypeHint)
 {
 }