PopupConfig

Configuration for a ReCaptcha popup.

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

public class PopupConfig

Constructors

Creates a new PopupConfig.

public PopupConfig(
    string? title = null,
    ImageSource? icon = null,
    bool hasTitlebar = true,
    bool isDraggable = false,
    bool isDimmed = true,
    bool? hasRoundedCorners = null,
    PopupStartupLocation startupLocation = PopupStartupLocation.CenterPrimary,
    int left = 0,
    int top = 0)
ParameterDescription
string? titleThe title of the dialog (Only used when HasTitleBar is true).
ImageSource? iconThe icon of the dialog (Only used when HasTitleBar is true).
bool hasTitlebarWether the dialog has a TitleBar.
bool isDraggableWether the dialog is draggable within the main window (Only used when HasTitleBar is true).
bool isDimmedWether the dialog dims the main windows background.
bool? hasRoundedCornersWether the window has rounded corners (If null the value is true on Windows 11 and false on Windows 10).
PopupStartupLocation startupLocationThe startup location of the popup.
int leftThe left position of the window.
int topThe top position of the window.

Properties

Title

The title of the dialog (Only used when HasTitleBar is true).

Type: string?
Modifier: none
Default Value: null

Icon

The icon of the dialog (Only used when HasTitleBar is true).

Type: ImageSource?
Modifier: none
Default Value: null

HasTitleBar

Wether the dialog has a TitleBar.

Type: bool
Modifier: none
Default Value: true

IsDragable

Wether the dialog is draggable within the main window (Only used when HasTitleBar is true).

Type: bool
Modifier: none
Default Value: false

IsDimmed

Wether the dialog dims the main windows background.

Type: bool
Modifier: none
Default Value: true

HasRoundedCorners

Wether the window has rounded corners (If null the value is true on Windows 11 and false on Windows 10).

Type: bool?
Modifier: none
Default Value: null

StartupLocation

The startup location of the popup.

Type: PopupStartupLocation
Modifier: none
Default Value: PopupStartupLocation.CenterPrimary

Left

The left position of the popup.

Type: int
Modifier: none
Default Value: 0

Top

The top position of the popup.

Type: int
Modifier: none
Default Value: 0