Explain image behavior for each credential tile version, package the README and XML documentation, and complete the public API comments.
43 lines
1.9 KiB
C#
43 lines
1.9 KiB
C#
using System.Drawing;
|
|
|
|
namespace Lithnet.CredentialProvider
|
|
{
|
|
/// <summary>
|
|
/// Represents a control that provides the credential UI with the logo of this credential provider.
|
|
/// </summary>
|
|
/// <remarks>See <see cref="BitmapControl.BackgroundColor"/> for the image transparency behaviour of each credential tile version.</remarks>
|
|
public class CredentialProviderLogoControl : BitmapControl
|
|
{
|
|
/// <summary>
|
|
/// Creates a new <see cref="CredentialProviderLogoControl"/> control.
|
|
/// </summary>
|
|
/// <param name="key">The unique key for this control.</param>
|
|
public CredentialProviderLogoControl(string key) : this(key, null, null) { }
|
|
|
|
/// <summary>
|
|
/// Creates a new <see cref="CredentialProviderLogoControl"/> control.
|
|
/// </summary>
|
|
/// <param name="key">The unique key for this control.</param>
|
|
/// <param name="label">The label associated with the control. This value is not displayed to the user.</param>
|
|
public CredentialProviderLogoControl(string key, string label) : this(key, label, null) { }
|
|
|
|
/// <summary>
|
|
/// Creates a new <see cref="CredentialProviderLogoControl"/> control.
|
|
/// </summary>
|
|
/// <param name="key">The unique key for this control.</param>
|
|
/// <param name="label">The label associated with the control.</param>
|
|
/// <param name="bitmap">The bitmap to use as the logo.</param>
|
|
public CredentialProviderLogoControl(string key, string label, Bitmap bitmap) : base(key, label, true, bitmap)
|
|
{
|
|
this.State = FieldState.DisplayInDeselectedTile;
|
|
}
|
|
|
|
private CredentialProviderLogoControl(CredentialProviderLogoControl source) : base(source) { }
|
|
|
|
internal override ControlBase Clone()
|
|
{
|
|
return new CredentialProviderLogoControl(this);
|
|
}
|
|
}
|
|
}
|