Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Boolean

Represents a Boolean value.

XAML
<object property="true" ... />
-or-
<object property="false" ... />
Scripting
See Remarks

Remarks

Boolean does not have any callable APIs.

Silverlight defines Boolean to provide type conversion and parsing behavior for XAML. For property values or method parameters in scripting, use either true or false. JavaScript keywords are case insensitive. For XAML attributes, use a string value of "true or "false", case insensitive. Integer values are also type-convertible as scripting values or as attribute values, with 0 converting to false, and all other values converting to true.

See Also

XAML Syntax Overview

Community Additions

Show:
© 2015 Microsoft