ProgrammaticName() публичный статический Метод

Gets the programmatic name for the specified automation property.
public static ProgrammaticName ( AutomationProperty property ) : string
property System.Windows.Automation.AutomationProperty The automation property.
Результат string
Пример #1
0
        /// <summary>
        ///     Gets the string representation of the specified property condition.
        /// </summary>
        /// <param name="condition">The condition.</param>
        /// <returns>The string representation.</returns>
        private static string ToString(PropertyCondition condition)
        {
            var property = AutomationPropertyHelper.ProgrammaticName(condition.Property);
            var value    = condition.Value.ToString();

            return(property + "='" + value + "'");
        }
Пример #2
0
        /// <summary>
        ///     Gets the string representation of the specified string property condition.
        /// </summary>
        /// <param name="condition"></param>
        /// <returns></returns>
        private static string ToString(StringPropertyCondition condition)
        {
            var property = AutomationPropertyHelper.ProgrammaticName(condition.Property);
            var value    = (string)condition.Value;
            var op       = condition.Matcher.ToString();

            return(property + op + "'" + value + "'");
        }