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
Agent and App Development Solutions
Build. Accelerate. Govern.
AI-Ready Application Experiences
AI-Assisted SDLC
Agent Governance and Control
Telerik
Build modern .NET business apps
.Net Web
Desktop
Reporting and Documents
Cross-Platform
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
CMS
Debugging
UI Tools
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");