// -----------------------------------------------------------------------
//
// Copyright 2014 MIT Licence. See licence.md for more information.
//
// -----------------------------------------------------------------------
namespace Perspex
{
using Perspex.Diagnostics;
using System;
///
/// A registered binding in a .
///
internal class PriorityBindingEntry : IDisposable
{
///
/// The binding subscription.
///
private IDisposable subscription;
public PriorityBindingEntry(int index)
{
this.Index = index;
}
///
/// Gets a description of the binding.
///
public string Description
{
get;
private set;
}
public int Index
{
get;
}
///
/// The current value of the binding.
///
public object Value
{
get;
private set;
}
///
/// Starts listening to the binding.
///
/// The binding.
/// Called when the binding changes.
/// Called when the binding completes.
public void Start(
IObservable