{"action":"closed","issue":{"url":"https://api.github.com/repos/MahApps/MahApps.Metro/issues/1891","labels_url":"https://api.github.com/repos/MahApps/MahApps.Metro/issues/1891/labels{/name}","comments_url":"https://api.github.com/repos/MahApps/MahApps.Metro/issues/1891/comments","events_url":"https://api.github.com/repos/MahApps/MahApps.Metro/issues/1891/events","html_url":"https://github.com/MahApps/MahApps.Metro/issues/1891","id":69380157,"number":1891,"title":"dialog.TryFindParent<MetroWindow>() returns null","user":{"login":"ye4241","id":6803102,"avatar_url":"https://avatars.githubusercontent.com/u/6803102?v=3","gravatar_id":"","url":"https://api.github.com/users/ye4241","html_url":"https://github.com/ye4241","followers_url":"https://api.github.com/users/ye4241/followers","following_url":"https://api.github.com/users/ye4241/following{/other_user}","gists_url":"https://api.github.com/users/ye4241/gists{/gist_id}","starred_url":"https://api.github.com/users/ye4241/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ye4241/subscriptions","organizations_url":"https://api.github.com/users/ye4241/orgs","repos_url":"https://api.github.com/users/ye4241/repos","events_url":"https://api.github.com/users/ye4241/events{/privacy}","received_events_url":"https://api.github.com/users/ye4241/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-19T03:58:51Z","updated_at":"2015-05-22T21:59:44Z","closed_at":"2015-05-22T21:59:44Z","body":"ShowProgressAsync of a MetroWindow with a Accented ColorScheme >> the code decetes the window theme and returns null.\r\n__in BaseMetroDialog.cs__\r\n```\r\n            //null\r\n            var window = dialog.TryFindParent<MetroWindow>();\r\n```\r\n__in TreeHelper.cs__\r\n_TryFindParent<T>_\r\n```\r\n...\r\n            //null\r\n            DependencyObject parentObject = GetParentObject(child);\r\n...\r\n```\r\n_GetParentObject_\r\n```\r\n...\r\n                //null,cause return the next code\r\n                DependencyObject parent = frameworkElement.Parent; \r\n...\r\n            //null\r\n            return VisualTreeHelper.GetParent(child);\r\n```\r\n\r\nThe widnow returns null, __however the dialog's OwningWindow is not null.__\r\n"}}