fixed #848
This commit is contained in:
1 parent
6d1543eacf
commit
1dbcc76ece
1 file changed
+1
-22
@@ -560,18 +560,6 @@ namespace HandyControl.Controls
|
|||||||
growlInfo.IconBrushKey = ResourceToken.PrimaryTextBrush;
|
growlInfo.IconBrushKey = ResourceToken.PrimaryTextBrush;
|
||||||
growlInfo.StaysOpen = true;
|
growlInfo.StaysOpen = true;
|
||||||
growlInfo.ShowCloseButton = false;
|
growlInfo.ShowCloseButton = false;
|
||||||
Application.Current.Dispatcher?.Invoke(
|
|
||||||
#if NET40
|
|
||||||
new Action(
|
|
||||||
#endif
|
|
||||||
() =>
|
|
||||||
{
|
|
||||||
if (GrowlPanel.ContextMenu != null) GrowlPanel.ContextMenu.Opacity = 0;
|
|
||||||
}
|
|
||||||
#if NET40
|
|
||||||
)
|
|
||||||
#endif
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -909,16 +897,7 @@ namespace HandyControl.Controls
|
|||||||
/// 清除
|
/// 清除
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="panel"></param>
|
/// <param name="panel"></param>
|
||||||
private static void Clear(Panel panel)
|
private static void Clear(Panel panel) => panel?.Children.Clear();
|
||||||
{
|
|
||||||
if (panel == null) return;
|
|
||||||
panel.Children.Clear();
|
|
||||||
if (panel.ContextMenu != null)
|
|
||||||
{
|
|
||||||
panel.ContextMenu.IsOpen = false;
|
|
||||||
panel.ContextMenu.Opacity = 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 清除
|
/// 清除
|
||||||
|
|||||||
Reference in new issue
Block a user