{"id":28126,"date":"2020-05-19T13:00:10","date_gmt":"2020-05-19T20:00:10","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/dotnet\/?p=28126"},"modified":"2020-05-27T16:29:31","modified_gmt":"2020-05-27T23:29:31","slug":"windows-forms-designer-for-net-core-released","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/windows-forms-designer-for-net-core-released\/","title":{"rendered":"Windows Forms Designer for .NET Core Released"},"content":{"rendered":"<p>Today we&#8217;re happy to announce that the Windows Forms designer for .NET Core projects is now available as a preview in <a href=\"https:\/\/docs.microsoft.com\/visualstudio\/releases\/2019\/release-notes#16.6.0\">Visual Studio 2019 version 16.6<\/a>! We also have a newer version of the designer available in\u00a0<a href=\"https:\/\/docs.microsoft.com\/visualstudio\/releases\/2019\/release-notes-preview#16.7.0-pre.1.0\" rel=\"nofollow\">Visual Studio 16.7 Preview 1<\/a>!<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-28127 size-large\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2020\/05\/designer-1024x692.png\" alt=\".NET Core Windows Forms designer in Visual Studio\" width=\"640\" height=\"433\" srcset=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2020\/05\/designer-1024x692.png 1024w, https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2020\/05\/designer-300x203.png 300w, https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2020\/05\/designer-768x519.png 768w, https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2020\/05\/designer.png 1420w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><em>Don&#8217;t forget to enable the designer in\u00a0<strong>Tools<\/strong>\u00a0&gt;\u00a0<strong>Options<\/strong>\u00a0&gt;\u00a0<strong>Environment<\/strong>\u00a0&gt;\u00a0<strong>Preview Features<\/strong><\/em>.<\/p>\n<p>Many of you may remember that we\u00a0<a href=\"https:\/\/blogs.windows.com\/windowsdeveloper\/2018\/12\/04\/announcing-open-source-of-wpf-windows-forms-and-winui-at-microsoft-connect-2018\/\" rel=\"nofollow\">open-sourced Windows Forms<\/a>\u00a0and ported it to .NET Core with .NET Core 3.0. Since then, we&#8217;ve been\u00a0<a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/updates-to-net-core-windows-forms-designer-in-visual-studio-16-5-preview-1\/#under-the-hood\" rel=\"nofollow\">hard at work<\/a>\u00a0bringing the Windows Forms designer experience to .NET Core. While we are getting closer to completion, we are continuing work on the designer and plan on bringing more functional and performance improvements in the near future.<\/p>\n<h2><a id=\"user-content-how-to-use-the-designer\" class=\"anchor\" href=\"https:\/\/github.com\/microsoft\/dotnet-blog\/blob\/e2eabd77cb3317ca9c43da89945dead16660de54\/2020\/05-May\/winforms-16.7-pr1\/winforms-blog-16.7Pr1.md#how-to-use-the-designer\" aria-hidden=\"true\"><\/a>How to use the designer<\/h2>\n<ul>\n<li>Install\u00a0<a href=\"https:\/\/visualstudio.microsoft.com\/downloads\/\" rel=\"nofollow\">Visual Studio 2019 version 16.6<\/a>\u00a0or\u00a0<a href=\"https:\/\/visualstudio.microsoft.com\/vs\/preview\/\" rel=\"nofollow\">Visual Studio 2019 version 16.7 Preview 1<\/a>.<\/li>\n<li>To enable the designer in Visual Studio, go to\u00a0<strong>Tools<\/strong>\u00a0&gt;\u00a0<strong>Options<\/strong>\u00a0&gt;\u00a0<strong>Environment<\/strong>\u00a0&gt;\u00a0<strong>Preview Features<\/strong>\u00a0and select the\u00a0<strong>Use the preview Windows Forms designer for .NET Core apps<\/strong>\u00a0option.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone size-large wp-image-28130\" style=\"font-size: 1rem;\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2020\/05\/settings.png\" alt=\"Enabling .NET Core Windows Forms designer in Visual Studio Settings\" width=\"640\" height=\"416\" srcset=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2020\/05\/settings.png 865w, https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2020\/05\/settings-300x195.png 300w, https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2020\/05\/settings-768x499.png 768w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>After completing these steps, once you double-click on your form in the Solution Explorer, the designer will open automatically the same way it is for .NET Framework applications.<\/p>\n<p>Improving the performance is our next goal after we complete the functionality work, so don&#8217;t get upset if it&#8217;s not as fast as you envisioned while the designer is in the preview, that&#8217;s something we will improve in the future.<\/p>\n<p>Currently the new Windows Forms designer works only on Windows 10.<\/p>\n<h2><a id=\"user-content-whats-available-in-the-designer\" class=\"anchor\" href=\"https:\/\/github.com\/microsoft\/dotnet-blog\/blob\/e2eabd77cb3317ca9c43da89945dead16660de54\/2020\/05-May\/winforms-16.7-pr1\/winforms-blog-16.7Pr1.md#whats-available-in-the-designer\" aria-hidden=\"true\"><\/a>What&#8217;s available in the designer<\/h2>\n<ul>\n<li>All Windows Forms controls except\u00a0<code>DataGridView<\/code>\u00a0and\u00a0<code>ToolStripContainer<\/code>\u00a0(these are coming soon)<\/li>\n<li><code>UserControl<\/code> and custom controls infrastructure (only <span class=\"x x-first x-last\">available since<\/span> Visual Studio 16.7 Preview 1 version)<\/li>\n<li>All designer functionality, such as\n<ul>\n<li>drag-and-drop<\/li>\n<li>selection, move and resize<\/li>\n<li>cut\/copy\/paste\/delete<\/li>\n<li>integration with Properties Window<\/li>\n<li>events generation and so on<\/li>\n<\/ul>\n<\/li>\n<li>New\u00a0<code>WebView2<\/code> control\nThis chromium-based embedded browser control allows to render web content (HTML\/CSS\/JavaScript) for .NET apps. It is supported in both .NET Core and .NET Framework platforms for Windows Forms and WPF applications. You can find a\u00a0<a href=\"https:\/\/docs.microsoft.com\/microsoft-edge\/webview2\/gettingstarted\/winforms\" rel=\"nofollow\">getting started tutorial<\/a>\u00a0in the Microsoft documentation and we will publish a blog post dedicated to WebView2 control in the nearest future.<\/li>\n<li>Local resources<\/li>\n<li>Partial support for localization\n<ul>\n<li>Localizable properties of the controls and UserControl can be serialized into ResX-files (by setting\u00a0<code>Localizable<\/code>\u00a0property to\u00a0<code>true<\/code>).<\/li>\n<li>Different languages are supported via changing\u00a0<code>Language<\/code>\u00a0property.<\/li>\n<li>Additional\u00a0<code>Cultures<\/code>\u00a0are added in the preview of .NET 5 according to the International Components for Unicode Standard (ICU).<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2><a id=\"user-content-whats-coming-next\" class=\"anchor\" href=\"https:\/\/github.com\/microsoft\/dotnet-blog\/blob\/e2eabd77cb3317ca9c43da89945dead16660de54\/2020\/05-May\/winforms-16.7-pr1\/winforms-blog-16.7Pr1.md#whats-coming-next\" aria-hidden=\"true\"><\/a>What&#8217;s coming next<\/h2>\n<div>\n<ul>\n<li>Project resources<\/li>\n<li>Complete localization<\/li>\n<li>Inherited dialogs support<\/li>\n<li>Data binding scenarios<\/li>\n<\/ul>\n<p>This work is in progress, and you already can see some results in the Visual Studio 16.7 Preview 1 designer.<\/p>\n<ul>\n<li>Third-party control vendors support<\/li>\n<\/ul>\n<div>We are working closely with the control vendors such as Progress Telerik, DevExpress and GrapeCity on supporting their controls in the Windows Forms designer in the nearest future for .NET Core and .NET 5 projects. We are also collaborating with ActiPro, Infragistics, and SyncFusion. On the following picture, you can see Progress Telerik controls in Windows Forms application targeting .NET 5.<\/div>\n<\/div>\n<h2><img decoding=\"async\" class=\"size-large wp-image-28129 alignnone\" style=\"font-size: 1rem;\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2020\/05\/progress-grid-1024x856.png\" alt=\"Using Progress Telerik RadGridView control in .NET 5\" width=\"640\" height=\"535\" srcset=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2020\/05\/progress-grid-1024x856.png 1024w, https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2020\/05\/progress-grid-300x251.png 300w, https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2020\/05\/progress-grid-768x642.png 768w, https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2020\/05\/progress-grid.png 1207w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/h2>\n<h2><a id=\"user-content-new-in-166-ga-release\" class=\"anchor\" href=\"https:\/\/github.com\/microsoft\/dotnet-blog\/blob\/e2eabd77cb3317ca9c43da89945dead16660de54\/2020\/05-May\/winforms-16.7-pr1\/winforms-blog-16.7Pr1.md#new-in-166-ga-release\" aria-hidden=\"true\"><\/a>New in 16.6 GA release<\/h2>\n<div>\n<div>The following controls support and improvements have been made in the 16.6 release.<\/div>\n<\/div>\n<ul>\n<li>All Dialogs controls<\/li>\n<li><code>PropertyGrid<\/code><\/li>\n<li><code>HScrollBar<\/code><\/li>\n<li><code>VScrollBar<\/code><\/li>\n<li><code>DomainUpDown<\/code><\/li>\n<li><code>TrackBar<\/code><\/li>\n<li>Drag-and-drop improvements<\/li>\n<li>Selection improvements<\/li>\n<li>Stability and bug fixes<\/li>\n<\/ul>\n<h2><a id=\"user-content-new-in-167-preview-1-release\" class=\"anchor\" href=\"https:\/\/github.com\/microsoft\/dotnet-blog\/blob\/e2eabd77cb3317ca9c43da89945dead16660de54\/2020\/05-May\/winforms-16.7-pr1\/winforms-blog-16.7Pr1.md#new-in-167-preview-1-release\" aria-hidden=\"true\"><\/a>New in 16.7 Preview 1 release<\/h2>\n<div>\n<div>The following controls support and improvements have been made in the 16.7 Preview 1 release.<\/div>\n<\/div>\n<ul>\n<li><code>UserControl<\/code> and custom controls infrastructure<\/li>\n<li><code>TableLayoutPanel<\/code><\/li>\n<li>Fundamentals for third-party controls support<\/li>\n<li>Fundamentals for data binding support<\/li>\n<li>Improvements in designer interaction with the\u00a0<code>TableLayoutPanel<\/code><\/li>\n<\/ul>\n<h2>Known issue<\/h2>\n<p class=\"x-hidden-focus\">Some users might not see some controls (like Button, CheckBox, etc.) in the Toolbox. That happens due to the Toolbox cache corruption issue that will be fixed in the next version.\u00a0 Meanwhile, there is a simple way to fix it on your machine:<\/p>\n<ol>\n<li class=\"x-hidden-focus\">Right-click on the <strong>Toolbox<\/strong> &gt; <strong>Choose Items<\/strong>\u2026<\/li>\n<li class=\"x-hidden-focus\">In the <strong>Choose Toolbox Items<\/strong> dialog click \u201c<strong>Reset<\/strong>\u201d button<\/li>\n<\/ol>\n<p>This should fix the problem.<\/p>\n<h2><a id=\"user-content-give-us-your-feedback\" class=\"anchor\" href=\"https:\/\/github.com\/microsoft\/dotnet-blog\/blob\/e2eabd77cb3317ca9c43da89945dead16660de54\/2020\/05-May\/winforms-16.7-pr1\/winforms-blog-16.7Pr1.md#give-us-your-feedback\" aria-hidden=\"true\"><\/a>Give us your feedback!<\/h2>\n<p>Your feedback is important to us! Please report issues and send feature requests via the Visual Studio Feedback channel. Use the &#8220;Send Feedback&#8221; icon in Visual Studio top-right corner as shown in the following image and specify that it is related to the &#8220;WinForms .NET Core&#8221; area.<\/p>\n<h2 style=\"font-family: Arimo, 'Helvetica Neue', Arial, sans-serif; color: #52595e;\"><img decoding=\"async\" class=\"alignnone size-large wp-image-28128\" style=\"font-size: 1rem;\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2020\/05\/feedback.png\" alt=\"Giving feedback directly from Visual Studio\" width=\"337\" height=\"193\" srcset=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2020\/05\/feedback.png 337w, https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2020\/05\/feedback-300x172.png 300w\" sizes=\"(max-width: 337px) 100vw, 337px\" \/><\/h2>\n<h2>Related links<\/h2>\n<p>Getting started:<\/p>\n<ul>\n<li><a title=\"Video on porting to .NET Core\" href=\"https:\/\/www.youtube.com\/watch?v=a66wsCRSgDk&amp;list=PLdo4fOcmZ0oV7n106SEWwWPy4WVjpl3Fj&amp;index=2\" target=\"_blank\" rel=\"noopener noreferrer\">Creating your first Windows Forms app on .NET Core\u00a0<\/a><\/li>\n<li><a title=\"Video on porting to .NET Core\" href=\"https:\/\/www.youtube.com\/watch?v=Y4pthq_zGvI&amp;t=6s\" target=\"_blank\" rel=\"noopener noreferrer\">Creating your first WPF app on .NET Core\u00a0<\/a><\/li>\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=BPWTdQ7rh2w&amp;list=PLdo4fOcmZ0oV7n106SEWwWPy4WVjpl3Fj&amp;index=1\">Differences between .NET Framework and .NET Core for desktop apps<\/a><\/li>\n<\/ul>\n<p>Porting<\/p>\n<ul>\n<li><a title=\"Blogpost on porting to .NET Core\" href=\"https:\/\/devblogs.microsoft.com\/dotnet\/net-core-3-for-windows-desktop\/\">Simple porting case<\/a><\/li>\n<li>Advanced porting case (<a title=\"Advanced blogpost on porting to .NET Core - part 1\" href=\"https:\/\/devblogs.microsoft.com\/dotnet\/migrating-a-sample-wpf-app-to-net-core-3-part-1\/\">Part 1<\/a>,\u00a0<a title=\"Advanced blogpost on porting to .NET Core - part 2\" href=\"https:\/\/devblogs.microsoft.com\/dotnet\/migrating-a-sample-wpf-app-to-net-core-3-part-2\/\">Part 2<\/a>)<\/li>\n<li class=\"\"><a class=\"\" title=\"Documentation on porting to .NET Core\" href=\"https:\/\/docs.microsoft.com\/en-us\/dotnet\/core\/porting\/\" target=\"_blank\" rel=\"noopener noreferrer\">Overview of the porting process<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Today we&#8217;re happy to announce that the Windows Forms designer for .NET Core projects is now available as a preview in Visual Studio 2019 version 16.6! We also have a newer version of the designer available in\u00a0Visual Studio 16.7 Preview 1! Don&#8217;t forget to enable the designer in\u00a0Tools\u00a0&gt;\u00a0Options\u00a0&gt;\u00a0Environment\u00a0&gt;\u00a0Preview Features. Many of you may remember that [&hellip;]<\/p>\n","protected":false},"author":365,"featured_media":58792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[685],"tags":[],"class_list":["post-28126","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dotnet"],"acf":[],"blog_post_summary":"<p>Today we&#8217;re happy to announce that the Windows Forms designer for .NET Core projects is now available as a preview in Visual Studio 2019 version 16.6! We also have a newer version of the designer available in\u00a0Visual Studio 16.7 Preview 1! Don&#8217;t forget to enable the designer in\u00a0Tools\u00a0&gt;\u00a0Options\u00a0&gt;\u00a0Environment\u00a0&gt;\u00a0Preview Features. Many of you may remember that [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/28126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/365"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=28126"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/28126\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/58792"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=28126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=28126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=28126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}