1
Vote

Unhadled exception due to lack of proposed type

description

When a custom xml node without a proposed type is clicked an unhandled exception is thrown.
 
The problem seems to bne the line
    private void CustomXmlTreeViewNode_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
    {
        CustomXmlNode node = (CustomXmlNode)customXmlTreeView.SelectedItem;
        if (node.HasChildNodes == false)........
 
the following effects a fix
    private void CustomXmlTreeViewNode_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
    {
        CustomXmlNode node = (CustomXmlNode)customXmlTreeView.SelectedItem;
        if (node.HasChildNodes == false && node.ProposedType != null).......
 
 
 
 
CustomXmlTreeViewNode_MouseLeftButtonDown

comments