Click or drag to resize

MainWindow class

Interaction logic for MainWindow.xaml
Inheritance hierarchy
SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.MediaVisual
        System.WindowsUIElement
          System.WindowsFrameworkElement
            System.Windows.ControlsControl
              System.Windows.ControlsContentControl
                System.WindowsWindow
                  Vishnu.WPF_UIMainWindow

Namespace: Vishnu.WPF_UI
Assembly: Vishnu.WPF_UI (in Vishnu.WPF_UI.dll) Version: 1.0.0+df0404e911d6c38eaed3bb1bb1acfc482d417643
Syntax
public class MainWindow : Window, IComponentConnector

The MainWindow Type exposes the following members.

Constructors
 NameDescription of the
Public MethodMainWindow Constructor of the main window.
Back to the top
Properties
 NameDescription of the
Public PropertyFirstSelectedIndex If 1, start with the job view, otherwise with the tree view (default: 0).
Public PropertyMainWindowAspects Essential display features of the Vishnu MainWindow. Are filled from the AppSettings when the application is started.
Public PropertyMinLeft Far left on the current screen.
Public PropertyMinTop At the top of the current screen.
Public PropertySizeOnVirtualScreen With true, several screens are displayed as a single screen. large screen, otherwise what counts for Changes in the size and position of the screen on which is the main location of the MainWindow (ActualScreen). Is currently (02/02/2024) always set to true internally! Previously default: false; Must be set externally after instantiation.
Back to the top
Methods
 NameDescription of the
Public MethodForceRecalculateWindowMeasures Sets the window size, taking maximum limits into account, to the height and width of the content and the SizeToContent property to WidthAndHeight. Then re-centre the window relative to the last position.
Public MethodInitializeComponent InitializeComponent
Public MethodMoveWindowToStartPosition Centres Window on Screen.
Protected MethodOnSourceinitialized Raises the System.Windows.Window.Sourceinitialized event.
(Overwrites WindowOnSourceinitialized(EventArgs))
Public MethodRecalculateWindowMeasures Sets the window size, taking maximum limits into account, to the height and width of the content and the SizeToContent property to WidthAndHeight. Then re-centre the window relative to the last position.
Back to the top
Fields
 NameDescription of the
Public FieldIsRelocating Indicates that the main window is currently changing its location and therefore cannot yet report the correct end position to the checker and worker. Is used in App.cs to react to the first positioning when the application is started. of the main window before an autostart is performed.
Public FieldStatic MemberSaveWindowAspectsAndCallViewModelLogicCommand Calls the local routine "SaveWindowAspectsAndCallViewModelLogic". This saves the current window display parameters in an instance of "WindowAspects" and then passes "WindowAspects" as a call parameter to the ViewModel routine "SaveTreeState", which in turn saves the WindowAspects together with tree-relevant parameters.
Back to the top
See also