Re:Tk9.0: CGo-free, cross platform GUI toolkit for Go
by shakna on Sunday December 01, 2024 @07:13AM
(#42288025)
This still works today for me:
Add-Type -AssemblyName PresentationFramework
[XML]$form = @"
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
Title="MainWindow" Height="450" Width="800">
<Grid>
</Grid>
</Window>
"@
$NR = (New-Object System.Xml.XmlNodeReader $form)
$window = [Windows.Markup.XamlReader]::Load($NR)
$window.ShowDialog()
> InvalidOperation: Unable to find type System.Windows.Forms.MessageBoxButtons].