payload: {"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/wpf/issues/707","repository_url":"https://api.github.com/repos/dotnet/wpf","labels_url":"https://api.github.com/repos/dotnet/wpf/issues/707/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/wpf/issues/707/comments","events_url":"https://api.github.com/repos/dotnet/wpf/issues/707/events","html_url":"https://github.com/dotnet/wpf/issues/707","id":445723511,"node_id":"MDU6SXNzdWU0NDU3MjM1MTE=","number":707,"title":"Button renders wrong after mouse leave","user":{"login":"jorisvergeer","id":1906639,"node_id":"MDQ6VXNlcjE5MDY2Mzk=","avatar_url":"https://avatars3.githubusercontent.com/u/1906639?v=4","gravatar_id":"","url":"https://api.github.com/users/jorisvergeer","html_url":"https://github.com/jorisvergeer","followers_url":"https://api.github.com/users/jorisvergeer/followers","following_url":"https://api.github.com/users/jorisvergeer/following{/other_user}","gists_url":"https://api.github.com/users/jorisvergeer/gists{/gist_id}","starred_url":"https://api.github.com/users/jorisvergeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorisvergeer/subscriptions","organizations_url":"https://api.github.com/users/jorisvergeer/orgs","repos_url":"https://api.github.com/users/jorisvergeer/repos","events_url":"https://api.github.com/users/jorisvergeer/events{/privacy}","received_events_url":"https://api.github.com/users/jorisvergeer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2019-05-18T14:56:22Z","updated_at":"2019-05-20T09:13:10Z","closed_at":null,"author_association":"NONE","body":"* .NET Core Version: 3.0 preview 5\r\n* Windows version: 1803 build 17134.765\r\n* Does the bug reproduce also in WPF for .NET Framework 4.8?: ~I don't know.~ It works fine on 4.6/4.7 and 4.8\r\n\r\n **Problem description:**\r\nWith this XAML:\r\n```\r\n<Window x:Class=\"RetailEntertainment.Zorgstand.SignIn.Desktop.Views.AddNewConnectionWindow\"\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:d=\"http://schemas.microsoft.com/expression/blend/2008\"\r\n        xmlns:mc=\"http://schemas.openxmlformats.org/markup-compatibility/2006\"\r\n        xmlns:local=\"clr-namespace:RetailEntertainment.Zorgstand.SignIn.Desktop.Views\"\r\n        xmlns:vms=\"clr-namespace:RetailEntertainment.Zorgstand.SignIn.Desktop.ViewModels\"\r\n        mc:Ignorable=\"d\"\r\n        d:DataContext=\"{d:DesignInstance vms:AddNewRegistrationDialogViewModel}\"\r\n        Title=\"New registration\" Width=\"400\" Height=\"100\">\r\n    <StackPanel>\r\n        <TextBlock Text=\"Entert the connection string received from the portal:\" />\r\n        <TextBox Text=\"{Binding ConnectionString}\" />\r\n        <StackPanel Orientation=\"Horizontal\" HorizontalAlignment=\"Right\">\r\n            <Button Content=\"Cancel\" Margin=\"4\" Padding=\"2\" Command=\"{Binding CloseDialogCommand}\"/>\r\n            <Button Content=\"Save\" Margin=\"4\" Padding=\"2\" Command=\"{Binding TestAndAddRegistrationCommand}\"/>\r\n        </StackPanel>\r\n    </StackPanel>\r\n</Window>\r\n```\r\nThe buttons render wrong after mouse leaves.\r\nBefore:\r\n![image](https://user-images.githubusercontent.com/1906639/57971363-4e266700-798d-11e9-8fb7-61618ae0e269.png)\r\nAfter:\r\n![image](https://user-images.githubusercontent.com/1906639/57971367-567ea200-798d-11e9-890f-3980dcac4fc0.png)\r\n \r\n **Actual behavior:** \r\nIt looks like the button renders as if it has its parent size. \r\nAfter resizing the window, it renders normally again.\r\n \r\n **Expected behavior:**\r\nNo weird rendering\r\n \r\n **Minimal repro:**\r\n Code is above\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/wpf/issues/comments/493903816","html_url":"https://github.com/dotnet/wpf/issues/707#issuecomment-493903816","issue_url":"https://api.github.com/repos/dotnet/wpf/issues/707","id":493903816,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5MzkwMzgxNg==","user":{"login":"jorisvergeer","id":1906639,"node_id":"MDQ6VXNlcjE5MDY2Mzk=","avatar_url":"https://avatars3.githubusercontent.com/u/1906639?v=4","gravatar_id":"","url":"https://api.github.com/users/jorisvergeer","html_url":"https://github.com/jorisvergeer","followers_url":"https://api.github.com/users/jorisvergeer/followers","following_url":"https://api.github.com/users/jorisvergeer/following{/other_user}","gists_url":"https://api.github.com/users/jorisvergeer/gists{/gist_id}","starred_url":"https://api.github.com/users/jorisvergeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorisvergeer/subscriptions","organizations_url":"https://api.github.com/users/jorisvergeer/orgs","repos_url":"https://api.github.com/users/jorisvergeer/repos","events_url":"https://api.github.com/users/jorisvergeer/events{/privacy}","received_events_url":"https://api.github.com/users/jorisvergeer/received_events","type":"User","site_admin":false},"created_at":"2019-05-20T09:13:10Z","updated_at":"2019-05-20T09:13:10Z","author_association":"NONE","body":"Anyway, \r\nWhat I guess that happend om my machine it this:\r\n\r\n(Approximation with Paint)\r\n\r\nIt wants to draw this:\r\n![image](https://user-images.githubusercontent.com/1906639/58009993-da509f80-7aef-11e9-9175-6e370e4bc872.png)\r\nAccidently draws a button on with its parents size (I saw something like this on one occasion when switching windows):\r\n![image](https://user-images.githubusercontent.com/1906639/58010050-f05e6000-7aef-11e9-9ba3-6caba496e0d8.png)\r\nThen only draws the portion in the buttons region:\r\n![image](https://user-images.githubusercontent.com/1906639/58010162-2ac7fd00-7af0-11e9-9d36-c86ffdd15506.png)\r\n"}}
other: {"actor":{"display_login":"jorisvergeer"}}