How to use AutomationProperties.Name?
You can pass the Window Title as parameter to its parent and set this parameter while initializing.
I do this way and works fine.
You can change the attached property AutomationProperties.Name either in XAML using:
AutomationProperties.Name = "new name"
or in code using:
Button.SetValue(AutomationProperties.NameProperty, "new value");
or
AutomationProperties.SetName(Button, "new value");