public void OnBot() { IntPtr hwnd = new WindowInteropHelper(this).Handle; TopMostTool.UnSetTopmost(hwnd); WindowState = WindowState.Minimized; }
public void OnTop() { IntPtr hwnd = new WindowInteropHelper(this).Handle; TopMostTool.SetTopmost(hwnd); WindowState = WindowState.Normal; }