WindowConfig

Configuration for a ReCaptcha window.

Type: Class
Namespace: ReCaptcha.Desktop.WinUI.Configuration
Assembly: ReCaptcha.Desktop.WinUI

public class WindowConfig

Constructors

Creates a new WindowConfig.

public WindowConfig(
    string title,
    ImageSource icon = default!,
    Window? owner = null,
    bool showAsDialog = false,
    WindowStartupLocation startupLocation = WindowStartupLocation.CenterScreen,
    int left = 0,
    int top = 0)
ParameterDescription
string titleThe title of the window.
ImageSource iconThe icon of the window.
Window? ownerThe owner of this window. (Only used for StartupLocation.CenterOwner).
bool showAsDialogWether to block the UI thread when showing the window.
WindowStartupLocation startupLocationThe startup postion of the window.
int leftThe left position of the window.
int topThe top position of the window.

Properties

Title

The title of the window.

Type: string
Modifier: none
Default Value: none

Icon

The icon of the window.

Type: ImageSource
Modifier: none
Default Value: default!

Owner

The owner of this window. (Only used for StartupLocation.CenterOwner).

Type: Window?
Modifier: none
Default Value: null

ShowAsDialog

Wether to block the UI thread when showing the window.

Type: bool
Modifier: none
Default Value: false

StartupLocation

The startup postion of the window.

Type: WindowStartupLocation
Modifier: none
Default Value: WindowStartupLocation.CenterScreen

Left

The left position of the window.

Type: int
Modifier: none
Default Value: 0

Top

The top position of the window.

Type: int
Modifier: none
Default Value: 0