Draw rounded corner rectangle with gradient

I’m trying to draw a rounded corner rectangle with gradient background.

It seems that NETMF ignores the gradient color if I set the radius to a value grater than 0.

Example:

 
// this works correctly
bmp.DrawRectangle(Colors.Orange, 4, 0, 0,
                    this.Width,
                    this.Height,
                    0,
                    0,
                    Colors.Red,
                    this.Width/2,
                    this.Width/2,
                    Colors.Orange,
                    this.Width,
                    this.Height,
                    0xFF);

//this draws a black rectangle without gradient background
 bmp.DrawRectangle(Colors.Orange, 4, 0, 0,
                    this.Width,
                    this.Height,
                    4,
                    4,
                    Colors.Red,
                    this.Width/2,
                    this.Width/2,
                    Colors.Orange,
                    this.Width,
                    this.Height,
                    0xFF);

Is this a known bug?

I don’t know if its a bug but yes it is known.

I figured this may be relevant: https://netmf.codeplex.com/workitem/2162

Maybe Skewworks has already seen this at the time he had posted. There doesn’t seem to be much activity on this issue reported though.