Skip to content

WinUI3 - CredentialPicker #3147

Answered by castorix
Balkoth asked this question in Q&A
Nov 14, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

This test seems to work for me (Windows 10 21H1 (french), Windows app SDK 1.1.0) :

               uint nSize = 260;
               StringBuilder sbComputerName = new StringBuilder((int)nSize);
               GetComputerName(sbComputerName, ref nSize);
               var options = new CredentialPickerOptions()
               {
                   TargetName = sbComputerName.ToString(),
                   Caption = "Title",
                   Message = "This is a test",
                   CredentialSaveOption = CredentialSaveOption.Selected,
                   AuthenticationProtocol = AuthenticationProtocol.Basic,
                   AlwaysDisplayDialog = true
               };
              …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Balkoth
Comment options

Answer selected by Balkoth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants