<HierarchicalDataTemplate... <StackPanel> <TextBlock > <TextBlock.ContextMenu> <ContextMenu > <MenuItem MouseRightButtonDown="TreeViewItem_SelectedItem">
This event returns object sender and MouseButtonEventArgs e. Through e.Source you can determine what caused the event:
TreeViewItem source = (TreeViewItem)e.Source; string name = source.Header.ToString();
Source: https://ru.stackoverflow.com/questions/606229/More articles:301 redirect doubles /, /?Write to file with last line checkPostgresql, change the words in the string in the reverse orderFile Error “attack.py”, line 2, in import socksHow to change the element id by js by conditionPHP Global ObjectMake a request to the database with a multiple joinJava. Calendar wacky behaviorRazor how to insert a colon (:)Smart input for urlAll Articles