Hello,
I have the following stylist code. I am then using this stylist for the grid.
When I do so, the scrollbar doesn't draw properly. The buttons and the thumb are a strange gray color.
The other parts of the grid seem to draw fine, including the scrollbar background.
Here is the stylist code:
[VB.Net]
Public Class MyStylist
Inherits Stylist
Public Overrides Sub Draw(ByVal sdi As NineRays.Windows.Drawing.StylistDrawInfo)
Select Case sdi.Element
Case Parts.RowHeader
ControlPaint.DrawBorder3D(sdi.Graphics, sdi.Rectangle.X, sdi.Rectangle.Y + 1, sdi.Rectangle.Width, sdi.Rectangle.Height, Border3DStyle.RaisedInner)
End Select
End Sub
Public Overrides Function GetSortArrowWidth() As Integer
End Function
Public Overrides Function SupportsDrawing(ByVal sdi As NineRays.Windows.Drawing.StylistDrawInfo) As Boolean
Return (sdi.Element = Parts.RowHeader)
End Function
End Class