[Mono-bugs] [Bug 623225] New: Reflection of properties behaviour on simulator and hardware is different

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Jul 17 12:53:56 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=623225

http://bugzilla.novell.com/show_bug.cgi?id=623225#c0


           Summary: Reflection of properties behaviour on simulator and
                    hardware is different
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Runtime
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: ajay.soni at enjector.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Community User
           Blocker: ---


Description of Problem:
TypeDescriptor.GetProperties (control) or control.GetType().GetProperties() do
not show all the available properties on hardware, but ok on simulator.

Steps to reproduce the problem:
1. Use TypeDescriptor.GetProperties (control) on a control instance from a xib
like a textfield. Or control.GetType().GetProperties().
2. Then iterate through the properties such as 
    foreach (PropertyInfo p in control.GetType().GetProperties()) {
        Console.WriteLine("    " + p.Name);
    }

3. On the device run with remote debugger running and try with Simulator you
will notice a difference.

Actual Results:
    ClassHandle
    Subviews
    Hidden
    SuperHandle
    Handle

Expected Results:
    ClassHandle
    Text
    TextColor
    Font
    TextAlignment
    BorderStyle
    Placeholder
    ClearsOnBeginEditing
    AdjustsFontSizeToFitWidth
    MinimumFontSize
    WeakDelegate
    Delegate
    Background
    DisabledBackground
    IsEditing
    ClearButtonMode
    LeftView
    LeftViewMode
    RightViewMode
    AutocapitalizationType
    AutocorrectionType
    KeyboardType
    KeyboardAppearance
    ReturnKeyType
    EnablesReturnKeyAutomatically
    SecureTextEntry
    InputAccessoryView
    InputView
    TextDidBeginEditingNotification
    TextDidEndEditingNotification
    TextFieldTextDidChangeNotification
    ShouldBeginEditing
    ShouldEndEditing
    ShouldClear
    ShouldReturn
    ShouldChangeCharacters
    Enabled
    Selected
    Highlighted
    VerticalAlignment
    HorizontalAlignment
    State
    Tracking
    TouchInside
    AllTargets
    AllControlEvents
    BackgroundColor
    Bounds
    UserInteractionEnabled
    Tag
    Layer
    Frame
    Center
    Transform
    MultipleTouchEnabled
    ExclusiveTouch
    AutosizesSubviews
    AutoresizingMask
    Superview
    Subviews
    Window
    ClipsToBounds
    Alpha
    Opaque
    ClearsContextBeforeDrawing
    Hidden
    ContentMode
    ContentStretch
    GestureRecognizers
    ContentScaleFactor
    NextResponder
    CanBecomeFirstResponder
    CanResignFirstResponder
    IsFirstResponder
    UndoManager
    SuperHandle
    Handle

How often does this happen? 
All the time.

Additional Information:
I'm using reflection because I'm building a DataBinding layer for my MVVM
engine

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list