Renames tile control classes

Adds conditional logging for memory debugging
Hides CrredentialTile3 implementation
This commit is contained in:
Ryan Newington
2023-02-03 07:26:07 +11:00
parent 9c1f89dfc8
commit bc984aaaa0
16 changed files with 122 additions and 85 deletions
@@ -0,0 +1,33 @@
namespace Lithnet.CredentialProvider
{
/// <summary>
/// Represents a 'v2' user credential tile that implements the functionality of <see cref="CredentialTile"/>, and includes support for personalized tile, where a single user tile is shown, with multiple logon options grouped within it.
/// </summary>
/// <remarks>Inheriting from this class enables you to provide a v2 credential tile. V2 credential tiles were introduced in Windows 8. See the Microsoft documentation on ICredentialProviderCredential2 for more information</remarks>
/// <inheritdoc/>
public abstract partial class CredentialTile2 : CredentialTile
{
/// <summary>
/// Gets the user represented by this credential tile
/// </summary>
public CredentialProviderUser User { get; }
/// <summary>
/// Gets a value indicating if this is a personalized or generic tile
/// </summary>
public override bool IsGenericTile => this.User == null;
/// <summary>
/// Gets or sets a value that controls how the generic tile is displayed to the end user.
/// </summary>
/// <remarks>This does not apply in scenarios where a personalized tile is provided</remarks>
public GenericTileDisplayMode GenericTileDisplayMode { get; set; }
protected CredentialTile2(CredentialProviderBase credentialProvider) : this(credentialProvider, null) { }
protected CredentialTile2(CredentialProviderBase credentialProvider, CredentialProviderUser user) : base(credentialProvider)
{
this.User = user;
}
}
}