WinJS.Binding.mixin object

Applies to Windows and Windows Phone

Provides a standard implementation of the bindable contract, as well as a basic storage mechanism that participates in change notification and an asynchronous notification implementation.

Syntax


WinJS.Class.mix(BindableObject, mixin);

Members

The mixin object has these types of members:

Methods

The mixin object has these methods.

MethodDescription
addProperty

Adds a property to the object. The property includes change notification and an ECMAScript 5 property definition .

bind

Links the specified action to the property specified in the name parameter.

getProperty

Gets a property value by name.

notify

Notifies listeners that a property value was updated.

removeProperty

Removes a property value.

setProperty

Updates a property value and notifies any listeners.

unbind

Removes one or more listeners from the notification list for a given property.

updateProperty

Updates a property value and notifies any listeners.

 

Remarks

For more information about how to use binding mixins, see How to bind a complex object.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.Binding

Library

Base.js

 

 

Show:
© 2014 Microsoft