Approved
Last Updated: 06 Feb 2017 11:38 by ADMIN
ADMIN
Dess | Tech Support Engineer, Sr.
Created on: 18 Jan 2017 13:00
Category: Buttons
Type: Bug Report
1
FIX. RadSplitButton - the "Pressed" state for the SplitActionPartFill element is never respected
When you customize a theme for RadSplitButton, you are not able to change the color of the action button element when it is pressed and the drop down is not opened. 

Workaround:
this.radSplitButtonElement2.ActionButton.MouseDown+=ActionButton_MouseDown;
this.radSplitButtonElement2.ActionButton.MouseUp+=ActionButton_MouseUp;

private void ActionButton_MouseUp(object sender, MouseEventArgs e)
{
    this.radSplitButtonElement2.ActionButton.ButtonFillElement.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local);
    this.radSplitButtonElement2.ActionButton.ButtonFillElement.ResetValue(LightVisualElement.GradientStyleProperty, ValueResetFlags.Local);
}

private void ActionButton_MouseDown(object sender, MouseEventArgs e)
{
    this.radSplitButtonElement2.ActionButton.ButtonFillElement.BackColor = Color.Red;
    this.radSplitButtonElement2.ActionButton.ButtonFillElement.GradientStyle = GradientStyles.Solid;
}
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments