Relative Content

Tag Archive for c#powershellxamlwinui-3powershell-7.4

How to create WinUI3 GUI in PowerShell?

The Goal Creating and rendering a simple WinUI3 GUI in PowerShell 7.5 which is based on .NET 9. Nothing complicated, just a window and a button in it, such as this XAML <?xml version=”1.0″ encoding=”utf-8″?> <Window x:Class=”App1.MainWindow” xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml” xmlns:local=”using:App1″ xmlns:d=”http://schemas.microsoft.com/expression/blend/2008″ xmlns:mc=”http://schemas.openxmlformats.org/markup-compatibility/2006″ mc:Ignorable=”d”> <StackPanel Orientation=”Horizontal” HorizontalAlignment=”Center” VerticalAlignment=”Center”> <Button x:Name=”myButton” Click=”myButton_Click”>Click Me</Button> </StackPanel> </Window> What I’ve […]