I found a way to make the window fade out on exit (http://stackoverflow.com/questions/867656/fading-out-a-wpf-window-on-close) and I wanted to implement it in my application.
Unfortunately, I got:
http://gyazo.com/bfe25228203790ef17da347ed7329476
I tried setting the AllowsTransparency on the MetroWindow in my xaml file and it doesn't change it. Could someone tell me what I am doing wrong?
Try
<i:Interaction.Behaviors>
<Behaviours:BorderlessWindowBehavior AllowsTransparency="whatever here"/>
</i:Interaction.Behaviors>
<i:Interaction.Behaviors>
<Behaviours:BorderlessWindowBehavior AllowsTransparency="True"/>
</i:Interaction.Behaviors>
makes
http://gyazo.com/7fdace22927b1c3af03abdeb3a745e6b
Now it doesn't have a border and it still doesn't work :/ Also, AllowsTransparency="False" doesn't work either.
@joazlazer @Amrykid the new BorderlessWindowBehavior set the AllowsTransparency of the MetroWindow always to false. i must consider what's the best way to allow users to set this to true without braking the solved issues like "oj, i don't see my browser.... i don't see my winforms control..."
Have a property public bool OverridesAllowsTransparency { get; set; } in MetroWindow?
I got it working just by adding
this.AllowsTransparency = true;
In the window constructor, after the InitializeComponent method call.
FYI, i'm working with 0.13.1.0 version. The bug appeared when I upgraded from 0.12.1.0.
@mrp14 That works thanks so much :thumbsup:
@punker76 Thanks for working on it! :thumbsup: :thumbsup:
@mrp14 that works! thumbs::up
Most helpful comment
I got it working just by adding
In the window constructor, after the InitializeComponent method call.
FYI, i'm working with 0.13.1.0 version. The bug appeared when I upgraded from 0.12.1.0.