SetNeedsDisplayInRect bug?

classic Classic list List threaded Threaded
2 messages Options
Art
Reply | Threaded
Open this post in threaded view
|

SetNeedsDisplayInRect bug?

Art
When I call  this.SetNeedsDisplayInRect(recDisplay),  I expect rectDraw to be equal to recDisplay but the recDraw  doesn't change. When I debug it recDraw is always equal to VIew.Frame

Is this a bug?


public class DrawView :UIView
        {
public override void Draw (RectangleF rectDraw)
        {
          }

public void RefreshLeftTop(){
RectangleF recDisplay = new RectangleF(0,0,50,50);
//the following redraw the view instead of redrawing recDisplay
 this.SetNeedsDisplayInRect(recDisplay);

}
}

Thanks
Art


Art
Reply | Threaded
Open this post in threaded view
|

Re: SetNeedsDisplayInRect bug?

Art
Hi,
Please ignore the following message. It was an issue with one of my libraries. I have to clean and rebuild when I make changes to the library otherwise it uses the older version of the library(dll).


Thanks
Art

On Wed, Sep 12, 2012 at 11:02 AM, Art <[hidden email]> wrote:
When I call  this.SetNeedsDisplayInRect(recDisplay),  I expect rectDraw to be
equal to recDisplay but the recDraw  doesn't change. When I debug it recDraw
is always equal to VIew.Frame

Is this a bug?


public class DrawView :UIView
        {
public override void Draw (RectangleF rectDraw)
        {
          }

public void RefreshLeftTop(){
RectangleF recDisplay = new RectangleF(0,0,50,50);
//the following redraw the view instead of redrawing recDisplay
 this.SetNeedsDisplayInRect(recDisplay);

}
}

Thanks
Art






--
View this message in context: http://monotouch.2284126.n4.nabble.com/SetNeedsDisplayInRect-bug-tp4656974.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch


_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch