All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
You can subscribe to the Click event of DocumentWindow.TabStripItem and check whether the time span between the clicks is small enough:
public
Form1()
{
InitializeComponent();
this
.documentWindow1.TabStripItem.Click +=
new
EventHandler(TabStripItem_Click);
}
DateTime startClick = DateTime.MinValue;
void
TabStripItem_Click(
object
sender, EventArgs e)
DateTime currentTime = DateTime.Now;
TimeSpan span = currentTime - startClick;
if
(span.TotalMilliseconds < SystemInformation.DoubleClickTime)
.radDock1.CloseWindow(
.documentWindow1);
startClick = currentTime;