Groups | Blog | Home
all groups > dotnet drawing api > november 2007 >

dotnet drawing api : SortArrow visual style problem


ARM
11/20/2007 3:18:02 AM
I`m trying to draw column header`s sort arrow visual style using
VisualRenderer but I always geting exception 'Given combination of Class,
Part, and State is not defined by the current visual style'.

That`s my code:
VisualRenderer = new
VisualStyleRenderer(VisualStyleElement.Header.SortArrow.SortedDown);
VisualRenderer.GetPartSize(Graphics, ThemeSizeType.True));

Note that with other visual styles all fine.
Internet did`nt tell me where`s the problem...

Can anyone tell me what I missed ?

P.S. Win XP SP2, VS 2005 SP1, .NET 2.0

Thanks!
ARM
11/25/2007 10:58:00 PM
AddThis Social Bookmark Button