WindowBase Class

The WindowBase class is the base class for all Tekla Structures WPF dialogs. The class provides localization, unit conversion and data storage (temporary and file-based) among other things.
Inheritance Hierarchy

Namespace:  Tekla.Structures.Dialog
Assembly:  Tekla.Structures.Dialog (in Tekla.Structures.Dialog.dll) Version: 2024.0.0+a110b435391768740483e3032720a566518c9a63
Syntax
public abstract class WindowBase : Window

The WindowBase type exposes the following members.

Constructors
  NameDescription
Public methodWindowBase
The default constructor that does not need parameters. Initializes the window and registers property bindings.
Top
Properties
  NameDescription
Public propertyLocalization
The localization instance for the dialog. Each dialog has its own localization instance that has read the localization files needed for that dialog.
Public propertyLocExtension
The localization instance for the dialog. Each dialog has its own localization instance that has read the localization files needed for that dialog.
Public propertyUseDefaultStyle
Use default style in all the window controls or not. If the property is not set in the window constructor the default value (true) is used.
Top
Methods
  NameDescription
Public methodApplyValues
Loads the dialog values from a file and performs Apply on the loaded values. To match the files to a certain dialog, the file suffix is set as the dialog type's name.
Public methodGetConnectionStatus
Returns true if a proper connection to the Tekla Structures process has been established. Currently, there's no way to re-establish the connection.
Public methodStatic memberGetUnitDecimals
Gets the number of decimals Tekla Structures uses with the specified unit type.
Public methodStatic memberInitializeAngleUnitDecimals
Gets the number of decimals Tekla Structures uses for displaying the angle unit and initializes Angle class to use that.
Public methodStatic memberInitializeDistanceUnitDecimals
Gets the number of decimals Tekla Structures uses for displaying the "length" unit and initializes the distance datatype to use that.
Public methodStatic memberInitializeUnitDecimals
Gets the number of decimals Tekla Structures uses for displaying its units and initializes the Tekla.Structures.Datatype classes to use them.
Public methodInitializeWindow
Prepares the data storage for the dialog and scans through the fields.
Public methodLoadValues
Loads the dialog values from a file. To match the files to a certain dialog, the file suffix is set as the dialog type's name.
Public methodModifyValues
Loads the dialog values from a file and performs Modify on the loaded values. To match the files to a certain dialog, the file suffix is set as the dialog type's name.
Public methodSaveValues
Serializes the dialog values to an xml file.
Public methodShowWindow
Displays the window.
Public methodUpdateDataStorageFromViewModel
DO NOT USE! For internal usage only!
Top
See Also
Was this helpful?
The feedback you give here is not visible to other users. We use your comments to improve the content.
Previous
Next