Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
AI Productivity Tools
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
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;