Update README.md

This commit is contained in:
Ryan Newington
2023-02-03 07:27:43 +11:00
committed by GitHub
parent bc984aaaa0
commit 084c66224e
+4 -4
View File
@@ -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;