Ejemplo n.º 1
0
 public PropertyDetails(PerspexPropertyValue value)
 {
     this.Name     = value.Property.Name;
     this.Value    = value.CurrentValue;
     this.Priority = (value.PriorityValue != null) ?
                     Enum.GetName(typeof(BindingPriority), value.PriorityValue.ValuePriority) :
                     value.Property.Inherits ? "Inherited" : "Unset";
 }
Ejemplo n.º 2
0
        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";

            if (value.PriorityValue != null)
            {
                value.PriorityValue.Changed.Subscribe(x => this.Value = x.Item2);
            }
        }