{"id":181,"date":"2024-08-27T16:44:38","date_gmt":"2024-08-27T21:44:38","guid":{"rendered":"https:\/\/blog.nkasco.com\/wordpress\/?p=181"},"modified":"2024-10-02T15:00:44","modified_gmt":"2024-10-02T20:00:44","slug":"how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9","status":"publish","type":"post","link":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/","title":{"rendered":"How To Use WinUI 3 Styles with WPF Forms in PowerShell (.NET 9)"},"content":{"rendered":"\n<p>A few months back I posted about how I <a href=\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/\" data-type=\"link\" data-id=\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/\">identified a way to use WinUI 3 styling in WPF forms in PowerShell<\/a>. However, in order to achieve it you had to download and sideload a 3rd party DLL. Well I have good news, that has been officially added to .NET 9 and is now available as of RC2!<\/p>\n\n\n\n<p>I&#8217;ll cut straight to the chase, if you&#8217;d like to try this out now feel free to follow these steps (see below for longer term information that mitigates having to do most of these steps):<\/p>\n\n\n\n<p><strong>UPDATE 10\/2\/2024: PowerShell 7.5 Preview 5 has been released and prevents the need to follow these setup steps &#8211; <a href=\"https:\/\/github.com\/PowerShell\/PowerShell\/releases\/tag\/v7.5.0-preview.5\">https:\/\/github.com\/PowerShell\/PowerShell\/releases\/tag\/v7.5.0-preview.5<\/a><\/strong> <\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>If you have installed any .NET 9 previews, be sure to uninstall those first as I noticed a conflict when I installed RC2 on top of other preview releases.<\/li>\n\n\n\n<li>Head over to where the nightly links are posted: <a href=\"https:\/\/github.com\/dotnet\/sdk\/blob\/main\/documentation\/package-table.md\">https:\/\/github.com\/dotnet\/sdk\/blob\/main\/documentation\/package-table.md<\/a><\/li>\n\n\n\n<li>Download the &#8220;Installer&#8221; exe for RC 2 (main column): <a href=\"https:\/\/aka.ms\/dotnet\/9.0.1xx\/daily\/dotnet-sdk-win-x64.exe\">https:\/\/aka.ms\/dotnet\/9.0.1xx\/daily\/dotnet-sdk-win-x64.exe<\/a><\/li>\n\n\n\n<li>Run and install dotnet-sdk-9.0.100-rc.2.24426.11-win-x64.exe <strong>as admin<\/strong><\/li>\n\n\n\n<li>Since PowerShell 7 doesn&#8217;t have a 7.5.x build on the RC yet, your only option currently is to use the fxdependent version.<\/li>\n\n\n\n<li>Head over to the PowerShell Releases page: <a href=\"https:\/\/github.com\/PowerShell\/PowerShell\/releases\">https:\/\/github.com\/PowerShell\/PowerShell\/releases\/tag\/v7.5.0-preview.3<\/a><\/li>\n\n\n\n<li>Download the latest fxdependent Win Desktop version for PowerShell 7.5: <a href=\"https:\/\/github.com\/PowerShell\/PowerShell\/releases\/download\/v7.5.0-preview.3\/PowerShell-7.5.0-preview.3-win-fxdependentWinDesktop.zip\">https:\/\/github.com\/PowerShell\/PowerShell\/releases\/download\/v7.5.0-preview.3\/PowerShell-7.5.0-preview.3-win-fxdependentWinDesktop.zip<\/a>\n<ul class=\"wp-block-list\">\n<li><strong>IMPORTANT: Older version are based on .NET 8 and older, and will typically not properly identify the .NET 9 installation<\/strong> <\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Unzip and run pwsh.exe from the unzipped folder\n<ul class=\"wp-block-list\">\n<li><em>Note: If you just run pwsh.exe from the start menu or Run dialog, it will likely run the wrong version of PowerShell 7 due to your PATH environmental variable.<\/em><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>Now that you have setup your machine to be able to run the latest Windows 11 theming in WPF, here is how you can test this out for yourself:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>First off, if your pwsh.exe closes immediately it&#8217;s not identifying the RC 2 .NET 9 installation. The fxdependent version allows you to separately install the .NET 9 dependency, and it has built in logic to automatically identify it&#8217;s installation.<\/li>\n\n\n\n<li>You can verify that your PowerShell 7 instance is using the proper version of .NET 9 RC2 by running the following command:<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\n&#x5B;System.Runtime.InteropServices.RuntimeInformation]::FrameworkDescription\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"89\" src=\"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/08\/rc2-1024x89.png\" alt=\"\" class=\"wp-image-182\" srcset=\"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/08\/rc2-1024x89.png 1024w, https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/08\/rc2-300x26.png 300w, https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/08\/rc2-768x66.png 768w, https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/08\/rc2.png 1098w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>As long as it returns &#8220;.NET 9.0.0-rc.2.24423.10&#8221; or newer your environment is ready to go!<\/p>\n\n\n\n<p>Finally, here is the sample you&#8217;ve been waiting for. Native .NET 9 RC 2 running Windows 11 style theming in a PowerShell 7 WPF Form!<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\nAdd-Type -AssemblyName PresentationFramework\n\n&#x5B;xml]$xaml = @&quot;\n&lt;Window\n    xmlns=&quot;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\/presentation&quot;\n    xmlns:x=&quot;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml&quot;\n    x:Name=&quot;Window&quot;&gt;\n    &lt;Window.Resources&gt;\n        &lt;ResourceDictionary&gt;\n            &lt;ResourceDictionary.MergedDictionaries&gt;\n                &lt;ResourceDictionary Source=&quot;pack:\/\/application:,,,\/PresentationFramework.Fluent;component\/Themes\/Fluent.xaml&quot; \/&gt;\n            &lt;\/ResourceDictionary.MergedDictionaries&gt;\n        &lt;\/ResourceDictionary&gt;\n    &lt;\/Window.Resources&gt;\n    &lt;StackPanel&gt;\n        &lt;StackPanel Orientation=&quot;Horizontal&quot; HorizontalAlignment=&quot;Center&quot;&gt;\n            &lt;TextBox x:Name=&quot;MyTextBox&quot; Width=&quot;150&quot; \/&gt;\n            &lt;Button x:Name=&quot;SubmitButton&quot; Content=&quot;Submit&quot; Margin=&quot;5&quot; \/&gt;\n        &lt;\/StackPanel&gt;\n    &lt;\/StackPanel&gt;\n&lt;\/Window&gt;\n&quot;@\n\n$reader = (New-Object System.Xml.XmlNodeReader $xaml)\n$window = &#x5B;Windows.Markup.XamlReader]::Load($reader)\n\n$window.ShowDialog()\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"581\" src=\"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/08\/Preview-1024x581.png\" alt=\"\" class=\"wp-image-183\" srcset=\"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/08\/Preview-1024x581.png 1024w, https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/08\/Preview-300x170.png 300w, https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/08\/Preview-768x435.png 768w, https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/08\/Preview.png 1208w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>While this is almost too good to be true, I recognize that the steps required to achieve it currently are not easily attainable. Especially for those in a corporate environment. So what&#8217;s next?<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Clearly given that PowerShell 7.5 will be based on .NET 9, it&#8217;s a bit of a waiting game for .NET 9 to go GA followed by a PowerShell release that incorporates that into it. <\/li>\n\n\n\n<li>At that point, you will be able to install a single PowerShell msi that contains both the required .NET 9 libraries and PowerShell 7.5.\n<ul class=\"wp-block-list\">\n<li><strong>UPDATE 10\/2\/2024 &#8211; PowerShell 7.5 Preview 5 has been released &#8211; <a href=\"https:\/\/github.com\/PowerShell\/PowerShell\/releases\/tag\/v7.5.0-preview.5\">https:\/\/github.com\/PowerShell\/PowerShell\/releases\/tag\/v7.5.0-preview.5<\/a> <\/strong><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>In the meantime, I plan to begin work on migrating my <a href=\"https:\/\/github.com\/nkasco\/IT-Admin-Toolkit-WinUI\" data-type=\"link\" data-id=\"https:\/\/github.com\/nkasco\/IT-Admin-Toolkit-WinUI\">C# based IT Admin Toolkit<\/a> over to WPF. I should have a public GitHub repo available soon enough if you&#8217;d like to contribute.<\/li>\n<\/ul>\n\n\n\n<p>Even typing out this article now, I almost can&#8217;t believe after years of seeking it out it&#8217;s finally something that admins can easily achieve without the need for 3rd party dlls, which makes adoptability of PowerShell based tools that much more attainable.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A few months back I posted about how I identified a way to use WinUI 3 styling in WPF forms in PowerShell. However, in order to achieve it you had to download and sideload a 3rd party DLL. Well I have good news, that has been officially added to .NET 9 and is now available [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":183,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-181","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Use WinUI 3 Styles with WPF Forms in PowerShell (.NET 9) - Nathan Kasco - Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Use WinUI 3 Styles with WPF Forms in PowerShell (.NET 9) - Nathan Kasco - Blog\" \/>\n<meta property=\"og:description\" content=\"A few months back I posted about how I identified a way to use WinUI 3 styling in WPF forms in PowerShell. However, in order to achieve it you had to download and sideload a 3rd party DLL. Well I have good news, that has been officially added to .NET 9 and is now available [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/\" \/>\n<meta property=\"og:site_name\" content=\"Nathan Kasco - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-08-27T21:44:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-02T20:00:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/08\/Preview.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1208\" \/>\n\t<meta property=\"og:image:height\" content=\"685\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Nate Kasco\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Bu5yGiraffe\" \/>\n<meta name=\"twitter:site\" content=\"@Bu5yGiraffe\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nate Kasco\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/\"},\"author\":{\"name\":\"Nate Kasco\",\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/#\/schema\/person\/1dfd694a2ed094a43a37dc6882c65eb3\"},\"headline\":\"How To Use WinUI 3 Styles with WPF Forms in PowerShell (.NET 9)\",\"datePublished\":\"2024-08-27T21:44:38+00:00\",\"dateModified\":\"2024-10-02T20:00:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/\"},\"wordCount\":625,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/#\/schema\/person\/1dfd694a2ed094a43a37dc6882c65eb3\"},\"image\":{\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/08\/Preview.png\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/\",\"url\":\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/\",\"name\":\"How To Use WinUI 3 Styles with WPF Forms in PowerShell (.NET 9) - Nathan Kasco - Blog\",\"isPartOf\":{\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/08\/Preview.png\",\"datePublished\":\"2024-08-27T21:44:38+00:00\",\"dateModified\":\"2024-10-02T20:00:44+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/#primaryimage\",\"url\":\"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/08\/Preview.png\",\"contentUrl\":\"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/08\/Preview.png\",\"width\":1208,\"height\":685},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.nkasco.com\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Use WinUI 3 Styles with WPF Forms in PowerShell (.NET 9)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/#website\",\"url\":\"https:\/\/blog.nkasco.com\/wordpress\/\",\"name\":\"Nathan Kasco - Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/#\/schema\/person\/1dfd694a2ed094a43a37dc6882c65eb3\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.nkasco.com\/wordpress\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/#\/schema\/person\/1dfd694a2ed094a43a37dc6882c65eb3\",\"name\":\"Nate Kasco\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/03\/cropped-logo.png\",\"url\":\"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/03\/cropped-logo.png\",\"contentUrl\":\"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/03\/cropped-logo.png\",\"width\":200,\"height\":200,\"caption\":\"Nate Kasco\"},\"logo\":{\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/03\/cropped-logo.png\"},\"sameAs\":[\"http:\/\/nkascocom.nk\/wordpress\",\"https:\/\/x.com\/Bu5yGiraffe\"],\"url\":\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/author\/nate\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Use WinUI 3 Styles with WPF Forms in PowerShell (.NET 9) - Nathan Kasco - Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/","og_locale":"en_US","og_type":"article","og_title":"How To Use WinUI 3 Styles with WPF Forms in PowerShell (.NET 9) - Nathan Kasco - Blog","og_description":"A few months back I posted about how I identified a way to use WinUI 3 styling in WPF forms in PowerShell. However, in order to achieve it you had to download and sideload a 3rd party DLL. Well I have good news, that has been officially added to .NET 9 and is now available [&hellip;]","og_url":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/","og_site_name":"Nathan Kasco - Blog","article_published_time":"2024-08-27T21:44:38+00:00","article_modified_time":"2024-10-02T20:00:44+00:00","og_image":[{"width":1208,"height":685,"url":"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/08\/Preview.png","type":"image\/png"}],"author":"Nate Kasco","twitter_card":"summary_large_image","twitter_creator":"@Bu5yGiraffe","twitter_site":"@Bu5yGiraffe","twitter_misc":{"Written by":"Nate Kasco","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/#article","isPartOf":{"@id":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/"},"author":{"name":"Nate Kasco","@id":"https:\/\/blog.nkasco.com\/wordpress\/#\/schema\/person\/1dfd694a2ed094a43a37dc6882c65eb3"},"headline":"How To Use WinUI 3 Styles with WPF Forms in PowerShell (.NET 9)","datePublished":"2024-08-27T21:44:38+00:00","dateModified":"2024-10-02T20:00:44+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/"},"wordCount":625,"commentCount":0,"publisher":{"@id":"https:\/\/blog.nkasco.com\/wordpress\/#\/schema\/person\/1dfd694a2ed094a43a37dc6882c65eb3"},"image":{"@id":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/08\/Preview.png","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/","url":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/","name":"How To Use WinUI 3 Styles with WPF Forms in PowerShell (.NET 9) - Nathan Kasco - Blog","isPartOf":{"@id":"https:\/\/blog.nkasco.com\/wordpress\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/#primaryimage"},"image":{"@id":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/08\/Preview.png","datePublished":"2024-08-27T21:44:38+00:00","dateModified":"2024-10-02T20:00:44+00:00","breadcrumb":{"@id":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/#primaryimage","url":"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/08\/Preview.png","contentUrl":"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/08\/Preview.png","width":1208,"height":685},{"@type":"BreadcrumbList","@id":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.nkasco.com\/wordpress\/"},{"@type":"ListItem","position":2,"name":"How To Use WinUI 3 Styles with WPF Forms in PowerShell (.NET 9)"}]},{"@type":"WebSite","@id":"https:\/\/blog.nkasco.com\/wordpress\/#website","url":"https:\/\/blog.nkasco.com\/wordpress\/","name":"Nathan Kasco - Blog","description":"","publisher":{"@id":"https:\/\/blog.nkasco.com\/wordpress\/#\/schema\/person\/1dfd694a2ed094a43a37dc6882c65eb3"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.nkasco.com\/wordpress\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/blog.nkasco.com\/wordpress\/#\/schema\/person\/1dfd694a2ed094a43a37dc6882c65eb3","name":"Nate Kasco","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/03\/cropped-logo.png","url":"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/03\/cropped-logo.png","contentUrl":"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/03\/cropped-logo.png","width":200,"height":200,"caption":"Nate Kasco"},"logo":{"@id":"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/03\/cropped-logo.png"},"sameAs":["http:\/\/nkascocom.nk\/wordpress","https:\/\/x.com\/Bu5yGiraffe"],"url":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/author\/nate\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=181"}],"version-history":[{"count":12,"href":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/181\/revisions"}],"predecessor-version":[{"id":201,"href":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/181\/revisions\/201"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/wp-json\/wp\/v2\/media\/183"}],"wp:attachment":[{"href":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}