Beispiel #1
0
 private void XPathInput_TextChanged(object sender, TextChangedEventArgs e)
 {
     ClearHighlights();
     try
     {
         IList <TextElement> selection = Parser?.SelectFromXPath(XPathInput1.Text, XPathInput2.Text);
         if ((selection != null) && (selection.Count > 0))
         {
             Highlights(selection);
             ExpandSourceTreeButOnlyFor(selection);
         }
     }
     catch
     {
     }
 }