GoXam for WPF v3
Attribute(XName,Boolean,Boolean) Method
Northwoods.GoXam.Model Namespace > XHelper Class > Attribute Method : Attribute(XName,Boolean,Boolean) Method
the attribute name, often the same as the data's property name
the property value
the default value for the property
Generate an XAttribute for a Boolean value, unless the value is equal to the given default value.
Syntax
public static XAttribute Attribute( 
   XName n,
   bool v,
   bool defval
)

Parameters

n
the attribute name, often the same as the data's property name
v
the property value
defval
the default value for the property

Return Value

an XAttribute or null
See Also

Reference

XHelper Class
XHelper Members
Overload List