GoXam for WPF v3
AttributeEnum<T> Method
Northwoods.GoXam.Model Namespace > XHelper Class : AttributeEnum<T> Method
this must be an Enum type
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 an enumerated type value, unless the value is equal to the given default value.
Syntax
public static XAttribute AttributeEnum<T>( 
   XName n,
   T v,
   T defval
)
where T: new(), IComparable, struct

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

Type Parameters

T
this must be an Enum type

Return Value

an XAttribute or null
See Also

Reference

XHelper Class
XHelper Members