{"action":"created","issue":{"url":"https://api.github.com/repos/MahApps/MahApps.Metro/issues/1835","labels_url":"https://api.github.com/repos/MahApps/MahApps.Metro/issues/1835/labels{/name}","comments_url":"https://api.github.com/repos/MahApps/MahApps.Metro/issues/1835/comments","events_url":"https://api.github.com/repos/MahApps/MahApps.Metro/issues/1835/events","html_url":"https://github.com/MahApps/MahApps.Metro/issues/1835","id":60734092,"number":1835,"title":"Window animation interferes with WindowsFormsHost positioning","user":{"login":"barbeque","id":423811,"avatar_url":"https://avatars.githubusercontent.com/u/423811?v=3","gravatar_id":"","url":"https://api.github.com/users/barbeque","html_url":"https://github.com/barbeque","followers_url":"https://api.github.com/users/barbeque/followers","following_url":"https://api.github.com/users/barbeque/following{/other_user}","gists_url":"https://api.github.com/users/barbeque/gists{/gist_id}","starred_url":"https://api.github.com/users/barbeque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barbeque/subscriptions","organizations_url":"https://api.github.com/users/barbeque/orgs","repos_url":"https://api.github.com/users/barbeque/repos","events_url":"https://api.github.com/users/barbeque/events{/privacy}","received_events_url":"https://api.github.com/users/barbeque/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MahApps/MahApps.Metro/labels/help%20wanted","name":"help wanted","color":"009800"},{"url":"https://api.github.com/repos/MahApps/MahApps.Metro/labels/Jump%20In","name":"Jump In","color":"669933"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-11T21:37:21Z","updated_at":"2016-01-29T16:02:38Z","closed_at":null,"body":"When you put a WindowsFormsHost inside a Metro window, sometimes the WinForms control will occasionally 'hang' in space after the introductory animation has completed and only move once an event (such as hovering over the 'close' box or tabbing out of the `MaskedTextBox`) has been processed.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/423811/6607409/267bbb0e-c804-11e4-85b0-864833f40edd.png)\r\n\r\nThe actual control in question doesn't seem to matter; I've experienced it with `Button`, `MaskedTextBox` and `CheckedListBox` off the top of my head. It also happens if the `WindowsFormsHost` is located inside of a `StackPanel` or even the root Content control, not just the nested `GroupBox` described in the example XAML.\r\n\r\nThe test XAML to produce this window is:\r\n\r\n```xaml\r\n    <metro:MetroWindow x:Class=\"MetroDemo.DemoWindow2\"\r\n            xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\r\n            xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\"\r\n            xmlns:metro=\"clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro\"\r\n            xmlns:wfh=\"clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms\"\r\n            Title=\"Demo window 2\" Height=\"500\" Width=\"400\">\r\n        <DockPanel LastChildFill=\"True\">\r\n            <StackPanel Orientation=\"Vertical\" DockPanel.Dock=\"Bottom\">\r\n                <GroupBox Header=\"WinForms Controls\">\r\n                    <StackPanel Orientation=\"Vertical\">\r\n                        <WindowsFormsHost Width=\"100\" HorizontalAlignment=\"Left\">\r\n                            <wfh:MaskedTextBox Mask=\"00/000/0000\"/>\r\n                        </WindowsFormsHost>\r\n                    </StackPanel>\r\n                </GroupBox>\r\n            </StackPanel>\r\n        </DockPanel>\r\n    </metro:MetroWindow>\r\n```\r\n\r\nI believe it is animation related because setting `WindowTransitionsEnabled` to false fixes the problem.\r\n\r\nI am using v1.1.2.0, grabbed from NuGet yesterday. OS is Windows 8.1 x64."},"comment":{"url":"https://api.github.com/repos/MahApps/MahApps.Metro/issues/comments/176837663","html_url":"https://github.com/MahApps/MahApps.Metro/issues/1835#issuecomment-176837663","issue_url":"https://api.github.com/repos/MahApps/MahApps.Metro/issues/1835","id":176837663,"user":{"login":"kjeremy","id":4325700,"avatar_url":"https://avatars.githubusercontent.com/u/4325700?v=3","gravatar_id":"","url":"https://api.github.com/users/kjeremy","html_url":"https://github.com/kjeremy","followers_url":"https://api.github.com/users/kjeremy/followers","following_url":"https://api.github.com/users/kjeremy/following{/other_user}","gists_url":"https://api.github.com/users/kjeremy/gists{/gist_id}","starred_url":"https://api.github.com/users/kjeremy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjeremy/subscriptions","organizations_url":"https://api.github.com/users/kjeremy/orgs","repos_url":"https://api.github.com/users/kjeremy/repos","events_url":"https://api.github.com/users/kjeremy/events{/privacy}","received_events_url":"https://api.github.com/users/kjeremy/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T16:02:38Z","updated_at":"2016-01-29T16:02:38Z","body":"I see this too on Windows 7"}}