Finished corrections from changes to UxTheme

pull/10/head
David Hall 2017-12-27 17:16:28 -07:00
parent 1241963a8b
commit 7868aa9339
3 changed files with 4 additions and 4 deletions

View File

@ -148,8 +148,8 @@ namespace Vanara.Windows.Forms
get => textImageRelation; set => SetField(ref textImageRelation, value, nameof(TextImageRelation));
}
/// <summary>Gets or sets a value indicating whether the first character that is preceded by an ampersand (&) is used as the mnemonic key of the control.</summary>
/// <value><c>true</c> if the first character that is preceded by an ampersand (&) is used as the mnemonic key of the control; otherwise, <c>false</c>. The default is <c>true</c>.</value>
/// <summary>Gets or sets a value indicating whether the first character that is preceded by an ampersand (&amp;) is used as the mnemonic key of the control.</summary>
/// <value><c>true</c> if the first character that is preceded by an ampersand (&amp;) is used as the mnemonic key of the control; otherwise, <c>false</c>. The default is <c>true</c>.</value>
[DefaultValue(true), Description(""), Category("Appearance")]
public bool UseMnemonic
{

View File

@ -265,7 +265,7 @@ namespace Vanara.Windows.Forms
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
BufferedPaint.PaintAnimation(e.Graphics, this, ClientRectangle, PaintControl, currentState, Enabled ? newState : ComboBoxState.Disabled, (a,b) => vsr.GetTransitionDuration((int)a, (int)b));
BufferedPaint.PaintAnimation(e.Graphics, this, ClientRectangle, PaintControl, currentState, Enabled ? newState : ComboBoxState.Disabled, (a,b) => (int)vsr.GetTransitionDuration((int)a, (int)b));
}
/// <summary>

View File

@ -16,7 +16,7 @@ namespace Vanara.Drawing
static BufferedPaint() { BufferedPaintInit(); }
public delegate uint GetDuration<in TState>(TState oldState, TState newState);
public delegate int GetDuration<in TState>(TState oldState, TState newState);
public delegate void PaintAction<in TState, in TParam>(Graphics graphics, Rectangle bounds, TState currentState, TParam data);