static private void ValidateElement(object value) { Debug.Assert((value != null) && (value is ControlElement)); ControlElement elem = (ControlElement)value; // Make sure Name is a valid type // This will throw if the type cannot be resolved Type tp = MobileControlsSection.StdTypeNameConverter.ConvertFromInvariantString(elem.Name) as Type; // Validate that tp inherits from MobileControl s_SubclassTypeValidator.Validate(tp); }
public void Remove( ControlElement controlElement ) { BaseRemove( GetElementKey( controlElement ) ); }
public void Add( ControlElement controlElement ) { BaseAdd( controlElement ); }
public void Remove(ControlElement controlElement) { BaseRemove(GetElementKey(controlElement)); }
public void Add(ControlElement controlElement) { BaseAdd(controlElement); }