Update README.md
This commit is contained in:
@@ -72,21 +72,21 @@ public override bool ShouldIncludeGenericTile()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override CredentialProviderCredential1Tile CreateGenericTile()
|
public override CredentialTile1 CreateGenericTile()
|
||||||
{
|
{
|
||||||
return new MyTile(this);
|
return new MyTile(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override CredentialProviderCredential1Tile CreateUserTile(CredentialProviderUser user)
|
public override CredentialTile2 CreateUserTile(CredentialProviderUser user)
|
||||||
{
|
{
|
||||||
return new MyTile(this, 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
|
```cs
|
||||||
public class MyTile : CredentialProviderCredential2Tile
|
public class MyTile : CredentialTile2
|
||||||
{
|
{
|
||||||
private TextboxControl UsernameControl;
|
private TextboxControl UsernameControl;
|
||||||
private SecurePasswordTextboxControl PasswordControl;
|
private SecurePasswordTextboxControl PasswordControl;
|
||||||
|
|||||||
Reference in New Issue
Block a user