WPF ScrollBar / Value vs. Maximum vs. ViewportSize

Gast #2586795
Lesenswert?

Also dann vielleich nochmal anders :-)

ich habe beim Scrollbar folgendes gesetzt:

Minimum      = 0
Maximum      = 100
Viewportsize = 100
Value        = 0

der Scrollbalken sieht dann so aus:

<==========---------->

Was muss ich für Viewportsize berechnen, damit der Scrollbalken so 
aussieht:

<====================>

???

Vielen Dank schon jetzt dafür.
Peter
Gast #2586902
Lesenswert?

Hier

http://windows-presentation-foundation.com/WPF_Built_In_Controls.aspx

steht jetzt z.B. folgendes:

You can control the size of a scrollbar's thumb with the ViewPortSize 
property. This can be anywhere from 0 to the Maximum property value. If 
the ViewPortSize is equal to Maximum, the thumb will fill the track, and 
will not be moveable. The smaller ViewPortSize is, the smaller the thumb 
will be.

Das passiert bei mir nicht. Bei mit ist der "thumb" nur 50% groß :-(

Also irgendwas stimmt doch da nicht.

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren