// -----------------------------------------------------------------------
//
// Copyright 2014 MIT Licence. See licence.md for more information.
//
// -----------------------------------------------------------------------
namespace Perspex.Diagnostics.Views
{
using Perspex.Controls;
using Perspex.Diagnostics.ViewModels;
using Perspex.Styling;
using ReactiveUI;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Reactive.Linq;
internal class ControlDetailsView : UserControl
{
private static readonly PerspexProperty ViewModelProperty =
PerspexProperty.Register("ViewModel");
public ControlDetailsView()
{
this.InitializeComponent();
this.GetObservable(DataContextProperty)
.Subscribe(x => this.ViewModel = (ControlDetailsViewModel)x);
}
public ControlDetailsViewModel ViewModel
{
get { return this.GetValue(ViewModelProperty); }
private set { this.SetValue(ViewModelProperty, value); }
}
private void InitializeComponent()
{
Func