private void ToggleWidgetWindow(WidgetWindow widgetWindow) { /* * widgetWindow.Owner = m_MainWindow; * if (widgetWindow.Visibility != Visibility.Visible) * { * widgetWindow.Opacity = 1.0f; * widgetWindow.Show(); * * WindowHelper.SetTopMostTransparent(widgetWindow); * } * else * { * widgetWindow.Opacity = 0.0f; * widgetWindow.Hide(); * } */ if (widgetWindow.Visibility != Visibility.Visible) { widgetWindow.Owner = m_MainWindow; widgetWindow.Show(); widgetWindow.Owner = null; WindowHelper.SetTopMostTransparent(widgetWindow); } else { widgetWindow.Hide(); } }
private void ToggleWidgetWindow(WidgetWindow widgetWindow) { if (widgetWindow.Visibility != Visibility.Visible) { widgetWindow.Owner = m_MainWindow; widgetWindow.Show(); widgetWindow.Owner = null; WindowHelper.SetTopMostTransparent(widgetWindow); } else { widgetWindow.Hide(); } }