Click or drag to resize

WindowOptions Class

A class representing the options for a Window.
Inheritance Hierarchy
SystemObject
  Openfin.DesktopOptionsEx
    Openfin.DesktopWindowOptions
      Openfin.Desktop.PlatformAPIDefaultWindowOptions

Namespace:  Openfin.Desktop
Assembly:  OpenfinDesktop (in OpenfinDesktop.dll) Version: 17.6.1
Syntax
C#
public class WindowOptions : OptionsEx

The WindowOptions type exposes the following members.

Constructors
  NameDescription
Public methodWindowOptions(String)
Constructs an instance with a new underliying JObject.
Public methodWindowOptions(String, String)
Constructs an instance with a new underliying JObject.
Top
Properties
  NameDescription
Public propertyAcceleratorKeys
Gets or sets the options for accelerator keys on the current window
Public propertyAlwaysOnTop
The AlwaysOnTop property represents a flag to always position the window at the top of the window stack.

Default: false

Public propertyAutoShow
The AutoShow property represents a flag to automatically show the Window when it is created.

Default: false

Public propertyBackgroundColor
Gets or sets the backfill color of the current window. The default is black.
Public propertyContentNavigationRules
Navigation rules used by this window.

Default: No application rules, Window will be allowed to navigate to any URL.

Public propertyContextMenu
The ContextMenu property represents a flag to show the context menu when right-clicking on a window.

Gives access to the Developer Console for the Window.

Default: false

Public propertyCornerRoundingHeight
The CornerRoundingHeight property represents the rounded corners height to apply.

Default: 0

Public propertyCornerRoundingWidth
The CornerRoundingWidth property represents the rounded corners width to apply.

Default: 0

Public propertyCustomData
Gets or sets custom data for the given Window instance.
Public propertyCustomRequestHeaders
Defines list of custom request headers for requests sent by the window.
Public propertyDefaultCentered
The DefaultCentered property specifies that the window will be positioned in the center of the primary monitor when loaded for the first time on a machine.

Default: false

Public propertyDefaultHeight
The DefaultHeight property represents the window's default height in pixels.

Default: 500

Public propertyDefaultLeft
The DefaultLeft property represents the window's default left position.

Default: 100

Public propertyDefaultTop
The DefaultTop property represents the window's default top position.

Default: 100

Public propertyDefaultWidth
The DefaultWidth property represents the window's default width in pixels.

Default: 800

Public propertyFrame
The Frame property represents a flag to show the frame.

Default: true

Public propertyHideOnClose Obsolete.
(Obsolete) The HideOnClose property represents a flag to allow a window to be hidden when the close button is clicked.

Default: false

Public propertyIconPath
Absolute path, relative path, or URL of the icon file to be shown in the window title bar and taskbar. When ommitted, inherits from the parent application.
Public propertyIconUrl
Absolute URL of the icon file to be shown on the windoe title bar and taskbar, as defined in IconPath
Public propertyLayout
Public propertyMaxHeight
The MaxHeight property represents the maximum height of a window.

Will default to the OS defined value if set to -1.

Default: -1

Public propertyMaximizable
The Maximizable property represents a flag that lets the window be maximized.

Default: true

Public propertyMaxWidth
The MaxWidth property represents the maximum width of a window.

Will default to the OS defined value if set to -1.

Default: -1

Public propertyMinHeight
The MinHeight property represents the minimum height of a window.

Default: 0

Public propertyMinimizable
The Minimizable property represents a flag that lets the window be minimized.

Default: true

Public propertyMinWidth
The MinWidth property represents the minimum width of a window.

Default: 0

Public propertyName
The Name property represents the name for the window which must be unique within the context of the invoking Application.

Default: An empty string

Public propertyOpacity
The Opacity property represents a flag that specifies how transparent the window will be.

Default: 1.0

Public propertyPreloadScript Obsolete.
(Deprecated) The preload Javascript file to load automatically after each page navigation.
Public propertyPreloadScripts
Gets or sets the collection of preload scripts to load automatically after each page navigation.
Public propertyResizable
The Resizable property represents a flag which allows the user to resize the window.

This property will be deprecated in a future release.

Default: true

Public propertyResizeRegionBottomRightCorner
The ResizeRegionBottomRightCorner property defines an additional square region located at the bottom right corner of a frameless window.

Default: 4

Public propertyResizeRegionSize
The ResizeRegionSize property defines a region in pixels that will respond to user mouse interaction for resizing a frameless window

Default: 2

Public propertySaveWindowState
The SaveWindowState property defines whether or not a window should maintain a persistent cache of its position/size.

Default: true

Public propertyShadow
Gets or sets a value indicating whether to show a shadow on a frameless Window.
Public propertyShowTaskbarIcon
The ShowTaskbarIcon property represents a flag to show the Window's icon in the taskbar.

Default: false

Public propertySmallWindow
Determines if window can be smaller than 41x46 px.
Public propertyState
The State property represents a string that sets the window to be "minimized", "maximized", or "normal" on creation.

Default: "normal"

Public propertyTaskbarIcon Obsolete.
(Obsolete) The TaskbarIcon property represents the URL of an icon to be shown on the desktop.

Support formats: Portable Network Graphic (PNG); Size: 256 x 256

Default: An empty string

Public propertyTaskbarIconGroup
Gets or sets the taskbar group for the window.
Public propertyURL
The URL property represents the URL of the window.

Default: "about:blank"

Public propertyWaitForPageLoadToRender
Determines if OpenFin will wait for DomContent Loaded to display the window.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodgetJsonCopy
Gets all settings in JObject format.
(Inherited from OptionsEx.)
Public methodGetProperty
Gets the value of specified property by it's name or JSON name. This methond is intended to get experimental, undocumented or unsupported properties. However, using this method with existing public property name or JSON name will also get the value of that property.
(Inherited from OptionsEx.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetProperty
Sets the value of specified property by it's name or JSON name. This methond is intended to set experimental, undocumented or unsupported properties. However, using this method with existing public property name or JSON name will also set the value of that property.
(Inherited from OptionsEx.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also