From 084c66224e27847adb6a92bd7d0e57468db23ebf Mon Sep 17 00:00:00 2001 From: Ryan Newington Date: Fri, 3 Feb 2023 07:27:43 +1100 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4cfed04..cf16d54 100644 --- a/README.md +++ b/README.md @@ -72,21 +72,21 @@ public override bool ShouldIncludeGenericTile() return true; } -public override CredentialProviderCredential1Tile CreateGenericTile() +public override CredentialTile1 CreateGenericTile() { return new MyTile(this); } -public override CredentialProviderCredential1Tile CreateUserTile(CredentialProviderUser user) +public override CredentialTile2 CreateUserTile(CredentialProviderUser user) { return new MyTile(this, user); } ``` -* Create your tile class. Inherit from `CredentialProviderCredential2Tile` if you want to create personalized tiles supported by Windows 8 and later, or `CredentialProviderCredential1Tile` if you only want to implement a generic tile. Grab the instances of your controls in the `Initialize` method, so you can attach to their properties to read and respond to value changes. Finally, override the `GetCredentials` method, which is called when the user clicks the submit button. +* Create your tile class. Inherit from `CredentialTile2` if you want to create personalized tiles supported by Windows 8 and later, or `CredentialTile2` if you only want to implement a generic tile. Grab the instances of your controls in the `Initialize` method, so you can attach to their properties to read and respond to value changes. Finally, override the `GetCredentials` method, which is called when the user clicks the submit button. ```cs -public class MyTile : CredentialProviderCredential2Tile +public class MyTile : CredentialTile2 { private TextboxControl UsernameControl; private SecurePasswordTextboxControl PasswordControl;