Open skopp1974 opened 7 years ago
Hi skopp, i took a look at your xaml - first the loader has problems with loading this namespace: xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
-- I will try to add some more logic to overcome this kind of issues automatically.
The second error was, that you have to set all events in your code_behind-File, but you created the Events within VisualStudio: Button Style="{StaticResource Flat_Button}" x:Name="btnCancel" Content="Cancel" Click="button1_Click" /
-- Need to investigate, if i can automatically remove this events.
I attached a working version of your xaml. MainWindow.zip
When I try to load my XAML, I get the below error: (I attached my Xaml.)
I plaed Icons and images in the same folder for testing.
Exception is coming from:
Set-Variable -Name $($fileName) -Value ([Windows.Markup.XamlReader]::Load((New-Object System.Xml.XmlNodeReader $xmlWPF))) -Scope Global MainWindow.zip
Exception calling "Load" with "1" argument(s): "Cannot set unknown member '{http://schemas.openxmlformats.org/markup-compatibility/2006}Ignorable'." At C:\SRINIVAS\SNIPPETS\PS-XAML\PSGUI-master\Project PSGUI\PSGUI\Initialize-XAMLDialog.ps1:101 char:34