The default scrollbar that Windows uses can take up a lot of space, especially if you are planning on using a ScrollViewer on a ListView in your application. Read on for the implementation of an Apple style scroll bar.
As you can see from the image above, the scroll bar is a minimal blob that alters in size depending on the total amount of items in its list.
Creating the demo application
Fire up Visual Studio and create a WPF Desktop application, and paste the following code over the existing Grid that is in the MainWindow.xaml file.
As you can see I have wrapped a ScrollViewer around the ListView, the reason I have done this is so I can style the ScrollViewer separately. This gives you the default Windows scroll bar which, as you can see takes up some space.
Now the next thing to do is go in to App.xaml and paste the following style in to your Application.Resources
This is the style for the Apple scroll bar - once this is pasted in App.xaml the styling will take effect immediately and you'll be able to see that the scroll bar in design view has changed to the one that we see in the initial example.
And there you have it! An Apple style scroll bar that will take effect in your application and take up less space than the default Windows one.