Run
Expand Minimize
This topic has not yet been rated - Rate this topic

Boolean

Silverlight

Represents a Boolean value.

<object property="true" ... />
-or-
<object property="false" ... />

The Boolean object 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" (also case-insensitive).

NoteNote:

Attribute values in XAML are generally treated as case-sensitive, but Boolean and certain other value types have built-in parser handling that will accept either case.

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.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.