Custom ScrollBar in Windows Phone Programming

0
3407

This example shows how you can create scroll bar in windows phone.

Algorithm:

1.) Create a new project by File-> New Project name it CustomScrollBarExample.
2.) Select Visual C# -> Silverlight for WindowsPhone from template section.
3.) Write following into MainPage.xaml:

 

Click="OnSetMaxTo40Click" />
</Grid>
</Grid>
</phone:PhoneApplicationPage>

4.) Run for output.

Steps:

1.) Create a project named CustomScrollBarExample and set the information as stated in the image.

Build Target OS: Windows Phone OS 7.1
Name: CustomScrollBarExample
Min SDK Version: 7.1

2.) Write following into MainPage.xaml.cs:

3.) Compile and build the project.

Output