mirror of https://github.com/dahall/Vanara.git
Finished corrections from changes to UxTheme
parent
1241963a8b
commit
7868aa9339
|
@ -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 (&) 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>
|
||||
[DefaultValue(true), Description(""), Category("Appearance")]
|
||||
public bool UseMnemonic
|
||||
{
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue