Completed
Last Updated: 11 Jul 2016 10:37 by ADMIN
ADMIN
Dimitar
Created on: 09 Mar 2015 12:07
Category: Buttons
Type: Bug Report
0
FIX. RadButton - the Click event is fired twice when the ClickMode is set to Release and the button element is placed inside the title bar.
To reproduce:
public class RadForm1
{
	private RadButtonElement btnHelp;

	private void RadForm1_Load(object sender, EventArgs e)
	{
		btnHelp = new RadImageButtonElement();
		btnHelp.AutoSize = true;
		btnHelp.ShowBorder = false;
		btnHelp.Image = My.Resources.Resources.help;
		btnHelp.DisplayStyle = DisplayStyle.Image;
		btnHelp.ButtonFillElement.Visibility = ElementVisibility.Hidden;
		btnHelp.ClickMode = ClickMode.Release;
		btnHelp.Click += btnHelp_Click;

		this.FormElement.TitleBar.SystemButtons.Children.Insert(0, btnHelp);
	}

	private void btnHelp_Click(object sender, EventArgs e)
	{
		Process.Start("http://www.telerik.com");
	}
	public RadForm1()
	{
		Load += RadForm1_Load;
	}

}

Workaround:
Use the Press ClikMode.


0 comments