Exemplo n.º 1
0
 public object?ReadLocalValue(BasicUIProperty property)
 {
     if (_properties.TryGetValue(property, out object?value))
     {
         return(value);
     }
     return(UnsetValue.Instance);
 }
Exemplo n.º 2
0
        public object?GetValue(BasicUIProperty property)
        {
            if (_properties.TryGetValue(property, out object?value))
            {
                return(value);
            }

            return(property.DefaultValue);
        }
Exemplo n.º 3
0
 public void ClearValue(BasicUIProperty property)
 {
     _properties.Remove(property);
 }
Exemplo n.º 4
0
 public void SetValue(BasicUIProperty property, object?value)
 {
     _properties[property] = value;
 }