Extentions
Extension methods to create configurations easier.
Type: Class 
Namespace: ReCaptcha.Desktop.UWP.Configuration
Assembly: ReCaptcha.Desktop.UWP
public static class Extentions
Methods
AsReCaptchaConfig
Creates a new ReCaptchaConfig.
Returns: A new AsReCaptchaConfig.
public static ReCaptchaConfig AsReCaptchaConfig(
    this string siteKey,
    string hostName,
    string language = "en",
    string tokenRecievedHtml = "Token recieved: %token%",
    string tokenRecievedHookedHtml = "Token recieved and sent to application.",
    HttpServerConfig? httpConfiguration = null)
| Parameter | Description | 
|---|---|
| this stringsiteKey | The SiteKey for the Google reCAPTCHA service. | 
| stringhostName | The name of the virtual host on which the reCAPTCHA is hosted. Should represent your application. | 
| stringlanguage | The language for the Google reCAPTCHA service. | 
| stringtokenRecievedHtml | The HTML which gets displayed after the user verifed the reCAPTCHA. Use %token% to embed the token inside the message. | 
| stringtokenRecievedHookedHtml | The HTML which gets displayed after the user verifed the reCAPTCHA and its hooked to the application. Use %token% to embed the token inside the message. | 
| HttpServerConfig?httpConfiguration | The configuration for the HttpServer. | 
AsPopupConfig
Creates a new PopupConfig.
Returns: A new PopupConfig.
public static PopupConfig AsPopupConfig(
    this string title,
    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)
| Parameter | Description | 
|---|---|
| stringtitle | The title of the dialog (Only used when HasTitleBar is true). | 
| ImageSource?icon | The icon of the dialog (Only used when HasTitleBar is true). | 
| boolhasTitlebar | Wether the dialog has a TitleBar. | 
| boolisDraggable | Wether the dialog is draggable within the main window (Only used when HasTitleBar is true). | 
| boolisDimmed | Wether the dialog dims the main windows background. | 
| bool?hasRoundedCorners | Wether the window has rounded corners (If null the value is true on Windows 11 and false on Windows 10). | 
| PopupStartupLocationstartupLocation | The startup location of the popup. | 
| intleft | The left position of the window. | 
| inttop | The top position of the window. |