Example #1
0
 /// <summary>
 /// Determines whether the value of this property should be serialized.
 /// </summary>
 /// <param name="component"></param>
 /// <returns></returns>
 public override bool ShouldSerializeValue(object component)
 {
     return(AggregatedProperty.ShouldSerializeValue(component));
 }
Example #2
0
 /// <summary>
 /// Sets the value of the component to a different value, redirecting
 /// the call to the appropriate object.
 /// </summary>
 /// <param name="component"></param>
 /// <param name="value"></param>
 public override void SetValue(object component, object value)
 {
     AggregatedProperty.SetValue(OwningProperty.GetValue(component), value);
 }
Example #3
0
 /// <summary>
 /// Gets the current value of the property on a component, redirecting
 /// the call to the appropriate object.
 /// </summary>
 /// <param name="component"></param>
 /// <returns></returns>
 public override object GetValue(object component)
 {
     return(AggregatedProperty.GetValue(OwningProperty.GetValue(component)));
 }
Example #4
0
 /// <summary>
 /// Resets the value for this property of the component to its default
 /// value.
 /// </summary>
 /// <param name="component"></param>
 public override void ResetValue(object component)
 {
     AggregatedProperty.ResetValue(component);
 }
Example #5
0
 /// <summary>
 /// Returns whether resetting an object changes its value.
 /// </summary>
 /// <param name="component"></param>
 /// <returns></returns>
 public override bool CanResetValue(object component)
 {
     return(AggregatedProperty.CanResetValue(component));
 }