Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Build JavaScript UI
Javascript
Telerik
Build modern .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
AI for Developers & IT
Ensure AI program success
AI for UI
AI Engineering
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
Debugging
UI Tools
CMS
Free Tools
Support and Learning
Productivity and Design Tools
You may verify the type of the original source:
private void clubsGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
{
var originalSource = e.OriginalSource as FrameworkElement;
if (originalSource is TextBlock)
MessageBox.Show("The original source is TextBlock");
}
else if (originalSource is Border)
MessageBox.Show("The original source is Border");
else
MessageBox.Show("The original source is: " + e.OriginalSource);
You may use the ParentOfType<T> extension method and verify whether it is a GridViewCell or not:
private void playersGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
if (originalSource is Border)
if ((originalSource as Border).ParentOfType<
GridViewCell
>() != null)
MessageBox.Show("You have clicked on a Border of a GridViewCell");