public static ProgrammaticName ( |
||
property | The automation property. | |
return | string |
public static string ProgrammaticName(AutomationProperty property)
{
var parts = property.ProgrammaticName.Split('.');
return parts[parts.Length - 1].Replace("Property", "");
}
/// <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 + "'"); }