private TextLabel buttonText;
private ImageView buttonIcon;
- private EventHandler<StateChangedEventArgs> stateChangeHander;
+ private EventHandler<StateChangedEventArgs> stateChangeHandler;
private bool isSelected = false;
private bool isEnabled = true;
PreviousState = ControlStatesExtension.FromControlStateClass(sourceState),
CurrentState = ControlStatesExtension.FromControlStateClass(targetState)
};
- stateChangeHander?.Invoke(this, e);
+ stateChangeHandler?.Invoke(this, e);
Extension?.OnControlStateChanged(this, new ControlStateChangedEventArgs(sourceState, targetState));
}
{
add
{
- stateChangeHander += value;
+ stateChangeHandler += value;
}
remove
{
- stateChangeHander -= value;
+ stateChangeHandler -= value;
}
}
/// Get current text part to the attached ButtonExtension.
/// </summary>
/// <remarks>
- /// It returns null if the passed extension is invaild.
+ /// It returns null if the passed extension is invalid.
/// </remarks>
/// <param name="extension">The extension instance that is currently attached to this Button.</param>
/// <return>The button's text part.</return>
/// Get current icon part to the attached ButtonExtension.
/// </summary>
/// <remarks>
- /// It returns null if the passed extension is invaild.
+ /// It returns null if the passed extension is invalid.
/// </remarks>
/// <param name="extension">The extension instance that is currently attached to this Button.</param>
/// <return>The button's icon part.</return>
/// Get current overlay image part to the attached ButtonExtension.
/// </summary>
/// <remarks>
- /// It returns null if the passed extension is invaild.
+ /// It returns null if the passed extension is invalid.
/// </remarks>
/// <param name="extension">The extension instance that is currently attached to this Button.</param>
/// <return>The button's overlay image part.</return>
}
// save position before animation clear.
- float[] childrenPositon = new float[childCount];
+ float[] childrenPosition = new float[childCount];
for (int i = childCount - 1; i >= 0; i--)
{
FlexibleViewViewHolder v = mChildHelper.GetChildAt(i);
- childrenPositon[i] = v.ItemView.PositionX;
+ childrenPosition[i] = v.ItemView.PositionX;
}
mScrollAni.Clear();
{
FlexibleViewViewHolder v = mChildHelper.GetChildAt(i);
// set position again because position might be changed after animation clear.
- v.ItemView.PositionX = childrenPositon[i];
+ v.ItemView.PositionX = childrenPosition[i];
mScrollAni.AnimateTo(v.ItemView, "PositionX", v.ItemView.PositionX + dx);
}
mScrollAni.Play();
}
// save position before animation clear.
- float[] childPositon = new float[childCount];
+ float[] childPosition = new float[childCount];
for (int i = childCount - 1; i >= 0; i--)
{
FlexibleViewViewHolder v = mChildHelper.GetChildAt(i);
- childPositon[i] = v.ItemView.PositionY;
+ childPosition[i] = v.ItemView.PositionY;
}
mScrollAni.Clear();
{
FlexibleViewViewHolder v = mChildHelper.GetChildAt(i);
// set position again because position might be changed after animation clear.
- v.ItemView.PositionY = childPositon[i];
+ v.ItemView.PositionY = childPosition[i];
mScrollAni.AnimateTo(v.ItemView, "PositionY", v.ItemView.PositionY + dy);
}
mScrollAni.Play();
{
//TNLog.E("Current value is less than the Min value, or greater than the Max value. currentValue = " + currentValue + ";");
#pragma warning disable CA2208 // Instantiate argument exceptions correctly
- throw new ArgumentOutOfRangeException("Wrong Current value. It shoud be greater than the Min value, and less than the Max value!");
+ throw new ArgumentOutOfRangeException("Wrong Current value. It should be greater than the Min value, and less than the Max value!");
#pragma warning restore CA2208 // Instantiate argument exceptions correctly
}
/// </summary>
private Dictionary<string, Theme> themeMap = new Dictionary<string, Theme>();
- private EventHandler<ThemeChangeEventArgs> themeChangeHander;
+ private EventHandler<ThemeChangeEventArgs> themeChangeHandler;
private Theme currentTheme;
{
add
{
- themeChangeHander += value;
+ themeChangeHandler += value;
}
remove
{
- themeChangeHander -= value;
+ themeChangeHandler -= value;
}
}
if (value != null && currentThemeName != value)
{
currentThemeName = value.ToUpperInvariant();
- themeChangeHander?.Invoke(null, new ThemeChangeEventArgs { CurrentTheme = currentThemeName });
+ themeChangeHandler?.Invoke(null, new ThemeChangeEventArgs { CurrentTheme = currentThemeName });
UpdateTheme();
}