In the ongoing quest to create Compact Framework applications that look nice I recently found a good post on how to draw Rounded Rectangles with CF: How to draw a rounded rectangle in .NETCF 

The author Christian Helle also has a Second post where the Rounded Rectangles get filled with a Texture

There is also ways without the GDI Functions but those are a little more complicated.

Share and Enjoy:
  • Technorati
  • Digg
  • Facebook
  • del.icio.us
  • Live
  • Google Bookmarks
  • DotNetKicks
  • DZone
  • TwitThis
  • Blogosphere News
  • Blogplay
  • LinkedIn
  • MisterWong
  • MisterWong.DE
  • MSN Reporter
  • MyShare
  • RSS
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Tumblr
  • Twitter
  • Webnews.de
  • Yahoo! Bookmarks
  • Yigg

Just found the Silvermoon project on Codeplex after Frank pointed me there in Facebook. AWESOME!!!  I always like fancy Controls that I don’t have to handcraft like in the GDI+ Article.

 Capture3.jpg Explorer1.jpg Explorer3.jpg Explorer4.jpg Explorer5.jpg Explorer6.jpg

Share and Enjoy:
  • Technorati
  • Digg
  • Facebook
  • del.icio.us
  • Live
  • Google Bookmarks
  • DotNetKicks
  • DZone
  • TwitThis
  • Blogosphere News
  • Blogplay
  • LinkedIn
  • MisterWong
  • MisterWong.DE
  • MSN Reporter
  • MyShare
  • RSS
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Tumblr
  • Twitter
  • Webnews.de
  • Yahoo! Bookmarks
  • Yigg

Auf allen Pocket Pc’s mit Windows Mobile 5 und 6 gibt es GDI+ wie schon in einem anderen Post von mir erwähnt. Die Standard Controls im Compact Framework sind ja eher Grau in Grau – Abhilfe kann da nicht schaden.

In letzter Zeit gibt es jetzt auch wieder mehrere Leute die zu  diesem interessanten Themengebiet posten:

Natürlich hat das alles nicht unbedingt einen positiven Effekt auf die Performance – aber coole Applikationen bringen mehr Geld ;)

Share and Enjoy:
  • Technorati
  • Digg
  • Facebook
  • del.icio.us
  • Live
  • Google Bookmarks
  • DotNetKicks
  • DZone
  • TwitThis
  • Blogosphere News
  • Blogplay
  • LinkedIn
  • MisterWong
  • MisterWong.DE
  • MSN Reporter
  • MyShare
  • RSS
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Tumblr
  • Twitter
  • Webnews.de
  • Yahoo! Bookmarks
  • Yigg

Vor einem Jahr habe ich micht mit Direct3D am Windows Mobile gespielt – war aber sehr frustriert da es von so gut wie keiner Hardware unterstützt wurde. So wie es scheint wird OpenGL ES der neue Standard auf Windows Mobile. Bis jetzt gabs da nur eine “native” API – da man aber UI’s am besten managed schreibt habe ich mich auf die Suche gemacht. Dabei habe ich einen ersten wrapper für Compact Framework gefunden,  dazu alles weitere am Blog von Koush. – Freue mich schon auf eine Zeit wo ich damit experimentieren kann.

Share and Enjoy:
  • Technorati
  • Digg
  • Facebook
  • del.icio.us
  • Live
  • Google Bookmarks
  • DotNetKicks
  • DZone
  • TwitThis
  • Blogosphere News
  • Blogplay
  • LinkedIn
  • MisterWong
  • MisterWong.DE
  • MSN Reporter
  • MyShare
  • RSS
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Tumblr
  • Twitter
  • Webnews.de
  • Yahoo! Bookmarks
  • Yigg

EDIT: see also Silvermoon – englisch post.

Es gibt einen super Post von Alex Feinmann (Opennet.cf) für einen GDI+ Wrapper am CompactFramework.

Unterstützt wird dabei nur Windows Mobile Professional – darum wird vermutlich auch von MS nichts derartiges geliefert.

Leider unterstützt diese Implementierung keine Rechtecke mit abgerundeten Ecken. Dazu habe ich aber etwas auf CodeProject von Arun Reginald gefunden.

Dann habe ich 3 kleine Methoden in die GraphicsPlus Klasse von Alex integriert – und angepasst und schon kann ich abegerundete Rechtecke am Windows Mobile zeichnen.

public GraphicsPath GetRoundedRectanglePath(float x, float y, float width, float height, float radius)
{
     GpRectF rectangle = new GpRectF(x, y, width, height);
     return GetRoundedRect(rectangle, radius);
} 


public
void DrawRoundRectangle(PenPlus pen,float x, float y,float width, float height, float radius)
{
   
GraphicsPath path = GetRoundedRectanglePath(x, y, width, height, radius);
   
DrawPath(pen, path);
}
Share and Enjoy:
  • Technorati
  • Digg
  • Facebook
  • del.icio.us
  • Live
  • Google Bookmarks
  • DotNetKicks
  • DZone
  • TwitThis
  • Blogosphere News
  • Blogplay
  • LinkedIn
  • MisterWong
  • MisterWong.DE
  • MSN Reporter
  • MyShare
  • RSS
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Tumblr
  • Twitter
  • Webnews.de
  • Yahoo! Bookmarks
  • Yigg