示例#1
0
        private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            var userPrefs = new UserPreferences
            {
                WindowHeight      = this.ActualHeight,
                WindowWidth       = this.ActualWidth,
                WindowTop         = this.Top,
                WindowLeft        = this.Left,
                WindowState       = this.WindowState,
                WindowLeftColumn  = Convert.ToDouble(this.Explorer.columnLeft.Width.ToString()),
                WindowRightColumn =
                    Convert.ToDouble(this.Explorer.columnRight.Width.ToString())
            };

            userPrefs.Save();
        }