public static AttachedHelper GetInstance(Window window)
 {
     Instances.Purge();
     return(Instances.FirstOrDefault(x => ReferenceEquals(x._child, window)));
 }