You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently trying to understand how custom assemblies work with Powershell and WPF, but I'm really knew to all this and can't find any detailled tutorials on this, so I stumbled on this error and I need help to solve it...
I'm really new to custom assemblies so I don't really know how to use them with Powershell and Xaml. Here's what I did :
Created new WPF project in VS and used Install-Package MahApps.Metro in PM Console
Located the .dll files that were just downloaded, and copied it to a new directory named "Themes" in the WPF project subdirectory (tried multiple net versions)
Created the .PS1 and modified the XAML according to the MahApps Quick Start guide (loading .dll assemblies in the script and changing the <Window ... </Window> tag to <mah:MetroWindow ... </mah:MetroWindow>.... and adding xmlns:mah="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
Exception calling "Load" with "1" argument(s): "The invocation of the constructor on type 'MahApps.Metro.Controls.MetroWindow' that matches the specified binding constraints threw an exception.
+ $window = [Windows.Markup.XamlReader]::Load( $reader )
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : XamlParseException
I really don't know what to do now, I don't even know how to get details about this exception. Can someone help me ?
The text was updated successfully, but these errors were encountered:
I've re-downloaded the .dll files and re-copied them, and now for some reasons, my Powershell sessions just die when I launch it ; no error, no popup, nothing. Didn't change the code, nothing explains the session being killed instantly
Hey,
I am currently trying to understand how custom assemblies work with Powershell and WPF, but I'm really knew to all this and can't find any detailled tutorials on this, so I stumbled on this error and I need help to solve it...
I'm really new to custom assemblies so I don't really know how to use them with Powershell and Xaml. Here's what I did :
<Window ... </Window>
tag to<mah:MetroWindow ... </mah:MetroWindow>.
... and addingxmlns:mah="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
The script
The XAML :
When launching the script I get this error :
I really don't know what to do now, I don't even know how to get details about this exception. Can someone help me ?
The text was updated successfully, but these errors were encountered: