1
Vote

Strange behavior in XmlPageFlowDefinition Constrained property

description

XmlPageFlowDefinition's Constrained property depends on its NavigationGraph as follows:
 
    public bool Constrained
    {
        get { return !navigationGraph.Constrained; }
    }
 
Note the "!" on the return value. So if the NavigationGraph's Constrained value is false, the Definition's Constrained value will be true.
 
This is very confusing, and if this is an intentional implementation then this properties should be renamed appropriately.

comments