We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to specify the custom renderer for the ScrollersFrame?

You can customize the appearance of the ScrollersFrame by using the CustomRender property. To create the CustomRenderer class, you need to inherit the Syncfusion.Windows.Forms.Renderers.IRenderer interface. The IRenderer interface implements the following functions in the CustomRenderer class.

  1. DrawBackground.
  2. DrawArrowButton.
  3. DrawThumb.

 

DrawBackground: Customizes the appearance of the ScrollersFrame.

DrawArrowButton: Draws the Arrow button used in the ScrollersFrame.

DrawThumb: Draws the thumb track used in the ScrollersFrame.

 

The following code example demonstrates the same.

C#

 

VB

 

Figure 1: Before passing the Custom Renderer to the ScrollersFrame

Figure 2: After passing the Custom Renderer to the ScrollersFrame

Sample Links:

C#: ScrollersFrame_CustomRender_C#

VB: ScrollersFrame_CustomRender_VB               

Article ID: Published Date: Last Revised Date: Platform: Control:
5465 10/14/2015 10/14/2015 Windows Forms ScrollersFrame
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.