Closed wfuerst closed 11 years ago
What version?
Please include the version of the library which you are using. This will help us to isolate the issue quicker.
Version is MahApps.Metro 0.11.0.23-ALPHA
this could be a bug in this version, please take the latest and test it again. thanks.
Hello,
Its still the same problem. Just tested it with latest version.
A possible solution would be to have the Glow Windows set the 'AssociatedObject' as their Owner. I'll test it out later and throw together a PR (if anyone doesn't before me).
i have this bug too
finding in the browser, see this
check here
public class GlowWindowBehavior : Behavior
this.AssociatedObject.Loaded += (sender, e) =>
{
left = new GlowWindow(this.AssociatedObject, GlowDirection.Left);
right = new GlowWindow(this.AssociatedObject, GlowDirection.Right);
top = new GlowWindow(this.AssociatedObject, GlowDirection.Top);
bottom = new GlowWindow(this.AssociatedObject, GlowDirection.Bottom);
Show();
left.Update();
right.Update();
top.Update();
bottom.Update();
};
this.AssociatedObject.Closed += (sender, args) =>
{
if (left != null) left.Close();
if (right != null) right.Close();
if (top != null) top.Close();
if (bottom != null) bottom.Close();
};
}
im sure here is the problem
this is the fix
protected override void OnAttached() { base.OnAttached();
this.AssociatedObject.Loaded += (sender, e) =>
{
left = new GlowWindow(this.AssociatedObject, GlowDirection.Left);
right = new GlowWindow(this.AssociatedObject, GlowDirection.Right);
top = new GlowWindow(this.AssociatedObject, GlowDirection.Top);
bottom = new GlowWindow(this.AssociatedObject, GlowDirection.Bottom);
left.Owner =(MetroWindow)sender;
right.Owner = (MetroWindow)sender;
top.Owner = (MetroWindow)sender;
bottom.Owner = (MetroWindow)sender;
Show();
left.Update();
right.Update();
top.Update();
bottom.Update();
};
this.AssociatedObject.Closed += (sender, args) =>
{
if (left != null) left.Close();
if (right != null) right.Close();
if (top != null) top.Close();
if (bottom != null) bottom.Close();
};
}
Is there a reason why GlowWindowBehavior creates 4 GlowWindows instead of 1 GlowWindow with a glowing border & transparent middle?
Hello,
With using the new version including the GlowWindow, i noticed that the task manager displays multiple processes, see screenshot:
Any ideas?
Thanks