Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1113285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:50:04+00:00 2026-05-17T02:50:04+00:00

I am attempting to work out the algorithm associated with sizing of the WPF

  • 0

I am attempting to work out the algorithm associated with sizing of the WPF Scrollbar thumb element.

The thumb element can be sized using the Scrollbar.ViewportSize property, but it in turn is related to the Scrollbar.Minimum and Scrollbar.Maximum values.

What I have discovered so far is:

For a Minimum and Maximum of 0 and 10, a ViewportSize of:

0 – Thumb minimum size
5 – Thumb approximately 25% of the available track
10 – Thumb approximately 50% of the available track
100 – Thumb approximately 75% of the available track
1000 – Thumb approximately 90% of the available track
10000 – Thumb fills the available track.

[note: these figures are only from my rough trial and error!]

Ideally I’d like to be able to have an algorithm where given the minimum and maximum values for the Scrollbar I can set the thumb size to be exactly x% of the available track.

Can anyone help with this?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T02:50:05+00:00Added an answer on May 17, 2026 at 2:50 am

    From: http://msdn.microsoft.com/en-us/library/system.windows.controls.primitives.track(VS.90).aspx

    thumbSize =
    (viewportSize/(maximum–minimum+viewportSize))×trackLength

    or re-arranging for viewportSize:

    viewportSize =
    thumbSize×(maximum-minimum)/(trackLength-thumbSize)

    You’ve prob found this already but thought I’d post in case others end up here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I simply can't work this out, I'm attempting to sum the value of TOTAL
I'm continuing to work out of an outdated bioinformatics book and I'm attempting to
I am attempting to profile a VB6 application. Basically I wanted to work out
I've got an issue in Excel that I can't seem to work out: I'm
I've been looking over the NAudio examples trying to work out how I can
I've been attempting to work out how to add a child View to a
I am trying to work out why I can't get JQuery Rounded Corners working
I'm using IronRuby and trying to work out how to use a block with
I am attempting to work out what is needed to publish a custom open
When I'm attempting to work with public assets (as documented here ) I'm receiving

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.