Windows Hello from WPF working but ... So Close RRS feed

  • Question

  • I have Windows Hello working from my WPF (UWP Bridge) app using the following method:

            private async Task<bool> windowsAuthenticateAsync() {
                var keyCredentialAvailable = await KeyCredentialManager.IsSupportedAsync();
                if (!keyCredentialAvailable) return false;
                var result = await KeyCredentialManager.RequestCreateAsync("AppName", KeyCredentialCreationOption.ReplaceExisting);
                return result.Status == KeyCredentialStatus.Success;

    And adding these 2 references:

    C:\Program Files (x86)\Windows Kits\10\UnionMetadata\Windows.winmd C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5\System.Runtime.WindowsRuntime.dll

    However, The Windows Hello prompt window is covered by my app, it does not set focus to itself. The Windows Hello Window flashes in the taskbar and when clicked it functions correctly.  This only happens in the deployed version not when started with an attached debugger in VS.  I have set Topmost="false" in my Wpf app window but this did not help.

    • Edited by PapaStoke Friday, February 22, 2019 2:48 PM clarification
    Thursday, February 21, 2019 1:57 PM


  • adding this line:

    corrects sets the UWP UI to work with the WPF app and the prompt appears on top.

    • Marked as answer by PapaStoke Sunday, February 24, 2019 6:49 PM
    Sunday, February 24, 2019 6:49 PM