Example #1
0
        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 );
 }
Example #4
0
 public void Remove(ControlElement controlElement)
 {
     BaseRemove(GetElementKey(controlElement));
 }
Example #5
0
 public void Add(ControlElement controlElement)
 {
     BaseAdd(controlElement);
 }