Is there a way of writing your own System.Windows.Automation.Condition class? I don't know how this class works because it offers no public method to define the comparison behavior.
Background: I use the UIAutomation library to find elements the user interacts with in order to repeat his actions. Sometimes I find it hard to access an element by its properties like the automation id or the name. Recently I found out that the buttons in the Aero bar of Windows 7 change their names to the name of the selected instance and this really strikes me because I cannot use the exact name for a comparison anymore.