I have the MainAppWindow XAML like this:
<local:MyWindow
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
...
xmlns:local="clr-namespace:MyNamespace"
xmlns:System="clr-namespace:System;assembly=mscorlib"
x:Class="MyNamespace.MainAppWindow"
x:Name="MyWindow"
....
AllowsTransparency="True">
end I get this weird exception:
Notice some important things:
Is this a WPF bug? What is the cause? Is there a solution? Does somebody know a workaround?
Doesn't it exactly tell you the requirements? Change the WindowStyle to None, that is just the way it is.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With