A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

41 lines
1.1 KiB

// -----------------------------------------------------------------------
// <copyright file="PropertyDetails.cs" company="Steven Kirk">
// Copyright 2014 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.Diagnostics.ViewModels
{
using System;
using ReactiveUI;
internal class PropertyDetails : ReactiveObject
{
public PropertyDetails(PerspexPropertyValue value)
{
this.Name = value.Property.Name;
this.Value = value.CurrentValue ?? "(null)";
this.Priority = (value.PriorityValue != null) ?
Enum.GetName(typeof(BindingPriority), value.PriorityValue.ValuePriority) :
value.Property.Inherits ? "Inherited" : "Unset";
}
public string Name
{
get;
private set;
}
public object Value
{
get;
private set;
}
public string Priority
{
get;
private set;
}
}
}