Use this property to force a node to have a expander even if it has no child nodes.
If the node previously had child nodes then it will by default still be assumed to be a folder so be default the expander is not removed. Setting HasExpander to false can remove the expander.
Setting HasExpander to false when the node has child nodes will have no effect.