{"id":156,"date":"2024-05-21T20:18:13","date_gmt":"2024-05-22T01:18:13","guid":{"rendered":"https:\/\/blog.nkasco.com\/wordpress\/?p=156"},"modified":"2024-08-27T17:02:04","modified_gmt":"2024-08-27T22:02:04","slug":"how-to-use-winui-3-styles-with-wpf-forms-in-powershell","status":"publish","type":"post","link":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/","title":{"rendered":"How To Use WinUI 3 Styles with WPF Forms in PowerShell (Sideload DLL)"},"content":{"rendered":"\n<p>If you look back at my posts over the years, it&#8217;s no secret that I&#8217;ve been on the hunt for a way to create forms that use WinUI 3 element styling. After many, <em>many,<\/em> failed attempts and rabbit holes I had largely given up hope&#8230; Until today.<\/p>\n\n\n\n<p>Today Microsoft <a href=\"https:\/\/blogs.windows.com\/windowsdeveloper\/2024\/05\/21\/unlock-a-new-era-of-innovation-with-windows-copilot-runtime-and-copilot-pcs\/\" data-type=\"link\" data-id=\"https:\/\/blogs.windows.com\/windowsdeveloper\/2024\/05\/21\/unlock-a-new-era-of-innovation-with-windows-copilot-runtime-and-copilot-pcs\/\" target=\"_blank\" rel=\"noreferrer noopener\">officially announced<\/a> that WinUI 3 and WPF are the two recommended UI platforms for Windows. In particular, they stated that WPF is being updated with Windows 11 theming. So what exactly does that mean? <\/p>\n\n\n\n<p>This sent me down a rabbit hole where I found an awesome GitHub Repo called <a href=\"https:\/\/github.com\/lepoco\/wpfui\" data-type=\"link\" data-id=\"https:\/\/github.com\/lepoco\/wpfui\" target=\"_blank\" rel=\"noreferrer noopener\">WPF UI<\/a>. Frankly, I&#8217;m not sure how I didn&#8217;t stumble upon this sooner, but nonetheless this repo is not your average 3rd party UI library. It was announced <a href=\"https:\/\/github.com\/lepoco\/wpfui\/discussions\/880\" data-type=\"link\" data-id=\"https:\/\/github.com\/lepoco\/wpfui\/discussions\/880\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a> and <a href=\"https:\/\/github.com\/dotnet\/wpf\/discussions\/8533\" data-type=\"link\" data-id=\"https:\/\/github.com\/dotnet\/wpf\/discussions\/8533\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a> that WPF UI and WPF would be officially collaborating to integrate this styling into the WPF library.<\/p>\n\n\n\n<p>While the official WPF Windows 11 Theming project can be tracked <a href=\"https:\/\/github.com\/orgs\/dotnet\/projects\/147\/views\/1\" data-type=\"link\" data-id=\"https:\/\/github.com\/orgs\/dotnet\/projects\/147\/views\/1\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>, I decided to take a stab at importing the current WPF UI library into Windows PowerShell.<br><em>Note: WPF UI is also available for .NET 6, 7, and 8 currently which also means it should be compatible with PowerShell 7!<\/em><\/p>\n\n\n\n<p>Without further adieu, here are steps that can be followed to create your very own WPF form with WinUI styling:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>First off, you&#8217;re going to need the UI library itself. There are several ways to obtain this, but for this example you can navigate to the NuGet Package Explorer for this package: <a href=\"https:\/\/nuget.info\/packages\/WPF-UI\/3.0.4\">https:\/\/nuget.info\/packages\/WPF-UI\/3.0.4<\/a><\/li>\n\n\n\n<li>In the file tree, expand lib then net481\n<ul class=\"wp-block-list\">\n<li>Remember that Windows PowerShell 5.1 is based on .NET Framework, whereas PowerShell 6\/7 are based on .NET<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Double click on <strong>Wpf.Ui.dll<\/strong> and save to your project folder\n<ul class=\"wp-block-list\">\n<li><img decoding=\"async\" width=\"175\" height=\"130\" class=\"wp-image-158\" style=\"width: 175px;\" src=\"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/05\/WPFUIDLL.png\" alt=\"\"><\/li>\n\n\n\n<li>Note: You will likely need to unblock the file, this can be done either via the right-click Properties menu or via the Unblock-File cmdlet\n<ul class=\"wp-block-list\">\n<li><img decoding=\"async\" width=\"325\" height=\"136\" class=\"wp-image-159\" style=\"width: 325px;\" src=\"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/05\/UnblockFile.png\" alt=\"\" srcset=\"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/05\/UnblockFile.png 347w, https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/05\/UnblockFile-300x125.png 300w\" sizes=\"(max-width: 325px) 100vw, 325px\" \/><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>That&#8217;s it! You&#8217;ve now got all you need to create and run this sample.<\/li>\n\n\n\n<li>Before I provide the code sample, I will highlight a few key components:\n<ul class=\"wp-block-list\">\n<li>At the top of your script, you must load the Wpf.Ui.dll types\n<ul class=\"wp-block-list\">\n<li><code>Add-Type -LiteralPath \"path\\to\\Wpf.Ui.dll\"<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Your parent Window element must include the following namespace:\n<ul class=\"wp-block-list\">\n<li><code>xmlns:ui=\"http:\/\/schemas.lepo.co\/wpfui\/2022\/xaml\"<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Finally, you must include the proper ResourceDictionary definitions (more on this below)<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>Now, putting all of this together looks something like this:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\nAdd-Type -LiteralPath &quot;path\\to\\Wpf.Ui.dll&quot;\n#If using PowerShell 7, you will also need to load in the PresentationFramework for the Windows.Markup.XamlReader type.\nAdd-Type -AssemblyName PresentationFramework\n\n&#x5B;xml]$xaml = @&quot;\n&lt;ui:FluentWindow\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    xmlns:ui=&quot;http:\/\/schemas.lepo.co\/wpfui\/2022\/xaml&quot;\n    x:Name=&quot;Window&quot;&gt;\n\n    &lt;ui:FluentWindow.Resources&gt;\n        &lt;ResourceDictionary&gt;\n            &lt;ResourceDictionary.MergedDictionaries&gt;\n                &lt;ui:ThemesDictionary Theme=&quot;Dark&quot; \/&gt;\n                &lt;ui:ControlsDictionary \/&gt;\n            &lt;\/ResourceDictionary.MergedDictionaries&gt;\n        &lt;\/ResourceDictionary&gt;\n    &lt;\/ui:FluentWindow.Resources&gt;\n\n    &lt;StackPanel&gt;\n        &lt;ui:TitleBar Title=&quot;WPF UI Title Bar&quot;\/&gt;\n        &lt;TextBlock Padding=&quot;10&quot;&gt;This is a WPF window styled to look like WinUI 3!&lt;\/TextBlock&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;ui: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;\/ui:FluentWindow&gt;\n&quot;@\n\n$reader = (New-Object System.Xml.XmlNodeReader $xaml)\n$window = &#x5B;Windows.Markup.XamlReader]::Load($reader)\n\n&lt;# We won&#039;t add events in this example, but here are some examples for finding the elements\n$submitButton = $window.FindName(&quot;SubmitButton&quot;)\n$textbox = $window.FindName(&quot;MyTextBox&quot;)\n#&gt;\n\n$window.ShowDialog()\n<\/pre><\/div>\n\n\n<p>While this is so awesome, I think part of the appeal of WPF and WinForm UI creation within PowerShell is the simplicity and lack of 3rd party dependencies. I will definitely be keeping a close eye on the official WPF project once it is updated (expected ~November 2024) to revisit this, but until then this is the closest thing to WinUI styles with PowerShell. Enjoy!<\/p>\n\n\n\n<p>Update: 8\/27\/2024 &#8211; New post is LIVE! <a href=\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/\">https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/08\/27\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell-net-9\/<\/a><\/p>\n\n\n\n<p><em>Definitely need to give a special shout out to <strong>Microsoft MVP Violet Hansen<\/strong> (<a href=\"https:\/\/github.com\/HotCakeX\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/HotCakeX<\/a>). Her and I have been pretty aggressively posting all over looking for a way to use WinUI styles with PowerShell and today we finally found it.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you look back at my posts over the years, it&#8217;s no secret that I&#8217;ve been on the hunt for a way to create forms that use WinUI 3 element styling. After many, many, failed attempts and rabbit holes I had largely given up hope&#8230; Until today. Today Microsoft officially announced that WinUI 3 and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":162,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-156","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 (Sideload DLL) - 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\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/\" \/>\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 (Sideload DLL) - Nathan Kasco - Blog\" \/>\n<meta property=\"og:description\" content=\"If you look back at my posts over the years, it&#8217;s no secret that I&#8217;ve been on the hunt for a way to create forms that use WinUI 3 element styling. After many, many, failed attempts and rabbit holes I had largely given up hope&#8230; Until today. Today Microsoft officially announced that WinUI 3 and [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/\" \/>\n<meta property=\"og:site_name\" content=\"Nathan Kasco - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-22T01:18:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-27T22:02:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/05\/WPFUISample.png\" \/>\n\t<meta property=\"og:image:width\" content=\"606\" \/>\n\t<meta property=\"og:image:height\" content=\"334\" \/>\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=\"3 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\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/\"},\"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 (Sideload DLL)\",\"datePublished\":\"2024-05-22T01:18:13+00:00\",\"dateModified\":\"2024-08-27T22:02:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/\"},\"wordCount\":518,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/#\/schema\/person\/1dfd694a2ed094a43a37dc6882c65eb3\"},\"image\":{\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/05\/WPFUISample.png\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/\",\"url\":\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/\",\"name\":\"How To Use WinUI 3 Styles with WPF Forms in PowerShell (Sideload DLL) - Nathan Kasco - Blog\",\"isPartOf\":{\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/05\/WPFUISample.png\",\"datePublished\":\"2024-05-22T01:18:13+00:00\",\"dateModified\":\"2024-08-27T22:02:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/#primaryimage\",\"url\":\"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/05\/WPFUISample.png\",\"contentUrl\":\"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/05\/WPFUISample.png\",\"width\":606,\"height\":334},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/#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 (Sideload DLL)\"}]},{\"@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 (Sideload DLL) - 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\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/","og_locale":"en_US","og_type":"article","og_title":"How To Use WinUI 3 Styles with WPF Forms in PowerShell (Sideload DLL) - Nathan Kasco - Blog","og_description":"If you look back at my posts over the years, it&#8217;s no secret that I&#8217;ve been on the hunt for a way to create forms that use WinUI 3 element styling. After many, many, failed attempts and rabbit holes I had largely given up hope&#8230; Until today. Today Microsoft officially announced that WinUI 3 and [&hellip;]","og_url":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/","og_site_name":"Nathan Kasco - Blog","article_published_time":"2024-05-22T01:18:13+00:00","article_modified_time":"2024-08-27T22:02:04+00:00","og_image":[{"width":606,"height":334,"url":"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/05\/WPFUISample.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":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/#article","isPartOf":{"@id":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/"},"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 (Sideload DLL)","datePublished":"2024-05-22T01:18:13+00:00","dateModified":"2024-08-27T22:02:04+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/"},"wordCount":518,"commentCount":0,"publisher":{"@id":"https:\/\/blog.nkasco.com\/wordpress\/#\/schema\/person\/1dfd694a2ed094a43a37dc6882c65eb3"},"image":{"@id":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/05\/WPFUISample.png","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/","url":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/","name":"How To Use WinUI 3 Styles with WPF Forms in PowerShell (Sideload DLL) - Nathan Kasco - Blog","isPartOf":{"@id":"https:\/\/blog.nkasco.com\/wordpress\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/#primaryimage"},"image":{"@id":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/05\/WPFUISample.png","datePublished":"2024-05-22T01:18:13+00:00","dateModified":"2024-08-27T22:02:04+00:00","breadcrumb":{"@id":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/#primaryimage","url":"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/05\/WPFUISample.png","contentUrl":"https:\/\/blog.nkasco.com\/wordpress\/wp-content\/uploads\/2024\/05\/WPFUISample.png","width":606,"height":334},{"@type":"BreadcrumbList","@id":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/2024\/05\/21\/how-to-use-winui-3-styles-with-wpf-forms-in-powershell\/#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 (Sideload DLL)"}]},{"@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\/156","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=156"}],"version-history":[{"count":11,"href":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/156\/revisions"}],"predecessor-version":[{"id":195,"href":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/156\/revisions\/195"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/wp-json\/wp\/v2\/media\/162"}],"wp:attachment":[{"href":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nkasco.com\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}