}//ctor()

                private void SetUpButtons(double width, double height, string previous)
                {
                        _changeThemeButton = new ValidateButton("Change theme", width * 0.5, height * 0.07, new System.Windows.Thickness(0, 30, 0, 30), new System.Windows.Thickness(5, 5, 5, 5), System.Windows.HorizontalAlignment.Center);
                        _changeThemeButton.MouseDown += _changeThemeButton_MouseDown;
                        _changeThemeButton._block.VerticalAlignment = System.Windows.VerticalAlignment.Center;

                        _resetThemeButton = new AlternativeButton("Reset theme", width * 0.5, height * 0.07, new System.Windows.Thickness(0, 30, 0, 30), new System.Windows.Thickness(5, 5, 5, 5), System.Windows.HorizontalAlignment.Center);
                        _resetThemeButton.MouseDown += _resetThemeButton_MouseDown;

                        _backButton = new CancelButton("Back to " + previous, width * 0.5, height * 0.07, new System.Windows.Thickness(0, 30, 0, 30), new System.Windows.Thickness(5, 5, 5, 5), System.Windows.HorizontalAlignment.Center);
                        _backButton.MouseDown += _backButton_MouseDown;

                        
                        _renameButton = new ValidateButton("Rename project", width * 0.5, height * 0.07, new System.Windows.Thickness(0, 30, 0, 30), new System.Windows.Thickness(5, 5, 5, 5), System.Windows.HorizontalAlignment.Center);
                        _renameButton.MouseDown += _renameButton_MouseDown;
                }
                public StackPanel GetNewProjectPanel()
                {
                        _createProjectButton = new ValidateButton("Go On !", Dimensions.GetWidth() * 0.3, Dimensions.GetHeight() * 0.07, new System.Windows.Thickness(0, 30, 0, 10), new System.Windows.Thickness(5, 5, 5, 5), System.Windows.HorizontalAlignment.Center);
                        _createProjectButton.MaxHeight = 60;
                        _createProjectButton.MouseDown += _createProjectButton_MouseDown;
                        _createProjectButton.MouseEnter += _createProjectButton_MouseEnter;
                        _createProjectButton.MouseLeave += _createProjectButton_MouseLeave;

                        _quitProjectButton = new CancelButton("Never mind", Dimensions.GetWidth() * 0.3, Dimensions.GetHeight() * 0.07, new System.Windows.Thickness(0, 0, 0, 0), new System.Windows.Thickness(5, 5, 5, 5), System.Windows.HorizontalAlignment.Center);
                        _quitProjectButton.MaxHeight = 60;
                        _quitProjectButton.MouseDown += _quitProjectButton_MouseDown;
                        _quitProjectButton.MouseEnter += _quitProjectButton_MouseEnter;
                        _quitProjectButton.MouseLeave += _quitProjectButton_MouseLeave;


                        //Creating the new proejct panel 

                        if(Dimensions.GetWidth() > 1900)
                        {
                                _subContainer = new CustomControls.Home.NewProjectPanel(_createProjectButton, _quitProjectButton, _containerPanel.Width);
                                ReloadLayout();
                        }

                        else
                        {
                                NewProjectPopUp newp = new NewProjectPopUp(Dimensions.GetWidth()*0.5,Dimensions.GetHeight()*0.8, "New project");
                        }
                        
                        return _mainPanel;
                       
                }
                private void SetUpButtons()
                {
                        _changeColor = new DefaultButton("Change accent color", Dimensions.GetWidth() * 0.3, Dimensions.GetHeight() * 0.07, new System.Windows.Thickness(0, 30, 0, 30), new System.Windows.Thickness(5, 5, 5, 5), System.Windows.HorizontalAlignment.Center);
                        _changeColor.MouseDown += _changeColor_MouseDown;


                        _applyButton = new ValidateButton("Apply Changes", Dimensions.GetWidth() * 0.3, Dimensions.GetHeight() * 0.07, new System.Windows.Thickness(0, 30, 0, 30), new System.Windows.Thickness(5, 5, 5, 5), System.Windows.HorizontalAlignment.Center);
                        _applyButton.MouseDown += _applyButton_MouseDown;

                        _cancelButton = new CancelButton("Cancel", Dimensions.GetWidth() * 0.3, Dimensions.GetHeight() * 0.07, new System.Windows.Thickness(0, 0, 0, 0), new System.Windows.Thickness(5, 5, 5, 5), System.Windows.HorizontalAlignment.Center);
                        _cancelButton.MouseDown += _cancelButton_MouseDown;
                }
                private void SetUpLatestProjects()
                {
                        _subContainer = new StackPanel();
                        _subContainer.Orientation = Orientation.Vertical;


                        _latestProjectsPanel = new StackPanel();
                        _latestProjectsPanel.Orientation = Orientation.Vertical;
                        _latestProjectsPanel.Width = _containerPanel.Width;

                        SetUpLatestTitle();                        
                        SetUpLatestProjectsNames();

                        _projectOpening = new ValidateButton("Open the app on last project", Dimensions.GetWidth() * 0.3, Dimensions.GetHeight() * 0.07, new System.Windows.Thickness(0, 30, 0, 10), new System.Windows.Thickness(5, 5, 5, 5), System.Windows.HorizontalAlignment.Center);

                        _projectOpening.MouseDown += _projectOpening_MouseDown;
                        //_latestProjectsPanel.Children.Add(_projectOpening);

                        SetUpLatestSeparator();


                        _subContainer.Children.Add(_latestProjectsPanel);

                        _containerPanel.Children.Add(_subContainer);
                }