Use Windows Hello in C# WPF application

Jeronymite 0 Reputation points
2023-03-03T23:59:23.94+00:00

I have seen W10 apps prompt for authentication using the standard login credentials window, particularly the Windows Hello PIN.

In a Windows 10, C#, WPF, .NET Framework 4.8 application, how can this be invoked to authenticate a user for an action? I'm not using VS or NuGet, so manual steps required, please.

Thanks.

Developer technologies | Windows Presentation Foundation
Windows for business | Windows Client for IT Pros | User experience | Other
Developer technologies | C#
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 90,686 Reputation points
    2023-03-04T07:53:51.69+00:00

    Windows Hello is mainly used in UWP : https://learn.microsoft.com/en-us/windows/uwp/security/microsoft-passport-login

    If you use it in a classic WPF app, you get

    The process has no package identity. (Exception from HRESULT: 0x80073D54)

    (tested on Windows 10 22H2)

    So you need to package it (Desktop Bridge or other)


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.