Example #1
0
        private string SetLocationOptions(string location)
        {
            // Find menu item by Tag, otherwise set Float window by default
            var foundMenu = FindMenuItem(clocksLocationMenu, location) ?? itemLocationFloat;

            SetMenuCheckState(foundMenu);

            this.Topmost       = String.Equals(location, Locations.TopMost, StringComparison.OrdinalIgnoreCase);
            this.ShowInTaskbar = String.Equals(location, Locations.Float, StringComparison.OrdinalIgnoreCase);
            if (String.Equals(location, Locations.Desktop, StringComparison.OrdinalIgnoreCase))
            {
                WinExtern.SendWindowBack(Application.Current.MainWindow); // Place window at the back of screen
            }
            return(foundMenu.Tag as String);
        }
Example #2
0
 private void MainWindow_Loaded(object sender, RoutedEventArgs e)
 {
     WinExtern.DisableWindowSwitcher(Application.Current.MainWindow);
 }