Enumeration that controls whether properties should be written as elements or attributes.
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.graphml.XamlAttributeWritePolicy
See Also
Constants
Specifies that the write mode of a member should be determined automatically according to the current property value and the presence of ValueSerializers or implementations of IMarkupExtensionConverters.
Remarks
Usually, an implementation would write the member as attribute if the content can somehow be (directly or indirectly) converted to a valid XML attribute content (i.e. a simple string)
Static Methods
Converts the argument to XamlAttributeWritePolicy.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- value - XamlAttributeWritePolicy
- The value to convert to XamlAttributeWritePolicy.
Returns
- ↪XamlAttributeWritePolicy
- Either
value
if it is already a XamlAttributeWritePolicy or an appropriate converted value.