// -----------------------------------------------------------------------
//
// Copyright 2014 MIT Licence. See licence.md for more information.
//
// -----------------------------------------------------------------------
namespace Perspex
{
using System;
using System.Reactive;
///
/// Defines possible binding modes.
///
public enum BindingMode
{
///
/// Uses the default binding mode specified for the property.
///
Default,
///
/// Binds one way from source to target.
///
OneWay,
///
/// Binds two-way with the initial value coming from the target.
///
TwoWay,
///
/// Copies the target to the source one time and then disposes of the binding.
///
OneTime,
///
/// Binds one way from target to source.
///
OneWayToSource,
}
///
/// Holds a description of a binding, usually for 's [] operator.
///
public class BindingDescriptor : ObservableBase