-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make Microsoft Visual Studio 2019 :: XAML Designer not barf a hairball (Fatal System Exception) on many XAML dialogs/panels #40
Labels
Milestone
Comments
Example Exception
|
GerHobbelt
added a commit
to GerHobbelt/qiqqa-open-source
that referenced
this issue
Aug 9, 2019
…Designer *NOT* barf a hairball (Fatal System Exception) on many XAML dialogs/panels in Qiqqa. The key to the latter is tweaked the dialog setup/init code such that XDevProc (which is part of Visual Studio) can execute that part of the Qiqqa code and thus render the panel -- or at least not b0rk and fail on it when you open the XAML file in the Designer. --- WARNING NOTE: TODO: The bit at the end is a copy/dump off SO where the same problem as jimmejardine#40 Must be tweaked and then retried with Qiqqa as it didn't fly for me yet. :-( The blunter hack of tweaked the Qiqqa code and sneakily support XDesProc code flow too by moving the Theme loader into Utilities.GUI is nice, but somehow still makes Designer blue-wave the Brushes and NOT render them. --- ``` <UserControl.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="pack://application:,,,/Styles;component/Resources.xaml" /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </UserControl.Resources> ```
GerHobbelt
added a commit
to GerHobbelt/qiqqa-open-source
that referenced
this issue
Aug 9, 2019
…b0rking of jimmejardine#40, hence a few bits from that one will peek through here. Using Json.NET as advised by Microsoft: https://docs.microsoft.com/en-us/dotnet/api/system.web.script.serialization.javascriptserializer?view=netframework-4.8 As mentioned in the Deprecation Notice of the old serializer code: > .NET binary serialization causes too much trouble, e.g. https://stackoverflow.com/questions/6825819/how-can-i-tell-when-what-is-loading-certain-assemblies and https://social.msdn.microsoft.com/forums/vstudio/en-US/7192f23e-7d43-47b5-b401-5fcd19671cf6/invalidcastexception-thrown-when-casting-to-the-same-type. Use Json.NET instead. And then there's https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/how-to-enable-and-disable-automatic-binding-redirection (sigh)
Above example is fixed in commit SHA-1: af670a8 |
GerHobbelt
changed the title
make Microsoft Visual Studio 2019 :: XAML Designer not barf a hairball (Fatal System Exception) on many XAML dialogs/panels
✅make Microsoft Visual Studio 2019 :: XAML Designer not barf a hairball (Fatal System Exception) on many XAML dialogs/panels
Aug 9, 2019
Fixed as per #33 - not released as setup.exe binary yet. |
|
GerHobbelt
added
🦸♀️enhancement🦸♂️
New feature or request
🐛bug
Something isn't working
labels
Oct 4, 2019
GerHobbelt
changed the title
✅make Microsoft Visual Studio 2019 :: XAML Designer not barf a hairball (Fatal System Exception) on many XAML dialogs/panels
make Microsoft Visual Studio 2019 :: XAML Designer not barf a hairball (Fatal System Exception) on many XAML dialogs/panels
Oct 4, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Double-click the XAML files and find that many fail to render with a reported Exception like Brush-blablabla-Blue-blalblBLA cannot be found, yadayada.
The text was updated successfully, but these errors were encountered: