提交 ac30fe6b 编写于 作者: Z ZouJin

修复聊天框打字时自动消失

上级 a0d58ca7
......@@ -354,17 +354,25 @@ namespace VPet_Simulator.Core
return FindResource("DangerProgressBarForeground") as Brush;
}
}
private void MenuPanel_MouseEnter(object sender, MouseEventArgs e)
public void MenuPanel_MouseEnter()
{
BdrPanel.Visibility = Visibility.Visible;
M_TimeUIHandle(m);
}
private void MenuPanel_MouseLeave(object sender, MouseEventArgs e)
public void MenuPanel_MouseLeave()
{
closePanelTimer.Start();
}
private void MenuPanel_MouseEnter(object sender, MouseEventArgs e)
{
MenuPanel_MouseEnter();
}
private void MenuPanel_MouseLeave(object sender, MouseEventArgs e)
{
MenuPanel_MouseLeave();
}
public void Dispose()
{
......
......@@ -273,5 +273,17 @@ namespace VPet_Simulator.Windows
lastopeningtime = DateTime.Now;
Task.Run(TalkChatInfoDisplay);
}
private void tbTalk_TextChanged(object sender, TextChangedEventArgs e)
{
if (tbTalk.Text.Length > 0)
{
mw.Main.ToolBar.MenuPanel_MouseEnter();
}
else
{
mw.Main.ToolBar.MenuPanel_MouseLeave();
}
}
}
}
......@@ -83,5 +83,17 @@ namespace VPet_Simulator.Windows
e.Handled = true;
}
}
private void tbTalk_TextChanged(object sender, TextChangedEventArgs e)
{
if (tbTalk.Text.Length > 0)
{
mw.Main.ToolBar.MenuPanel_MouseEnter();
}
else
{
mw.Main.ToolBar.MenuPanel_MouseLeave();
}
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册