home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Skins and Design
Apollo One
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="morpheus_xx" data-source="post: 1113694" data-attributes="member: 48495"><p>This could be a compromise: the knob is positioned "TopOffset + KnobHeight / 2". For longer list it looks better than for short lists.</p><p>[CODE=XML] <!-- Knob --></p><p> <StackPanel Grid.Row="0" Grid.Column="0" Orientation="Vertical"></p><p> <StackPanel></p><p> <StackPanel.Height></p><p> <MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0}+({1}/2)"></p><p> <TemplateBinding Path="ScrollBarYKnobPos" /></p><p> <TemplateBinding Path="ScrollBarYKnobHeight" /></p><p> </MultiBinding></p><p> </StackPanel.Height></p><p> </StackPanel></p><p></p><p> <Rectangle x:Name="ScrollBarYKnob" Width="{ThemeResource ScrollBarKnobWidth}" Height="18"</p><p> Stroke="{ThemeResource ScrollBarKnobStrokeColor}" RadiusX="9" RadiusY="9"</p><p> Fill="{ThemeResource ScrollBarKnobBackgroundColor}"></p><p> </Rectangle></p><p> </StackPanel>[/CODE]</p><p></p><p>[ATTACH]158543[/ATTACH] [ATTACH]158544[/ATTACH] [ATTACH]158545[/ATTACH] [ATTACH]158546[/ATTACH]</p></blockquote><p></p>
[QUOTE="morpheus_xx, post: 1113694, member: 48495"] This could be a compromise: the knob is positioned "TopOffset + KnobHeight / 2". For longer list it looks better than for short lists. [CODE=XML] <!-- Knob --> <StackPanel Grid.Row="0" Grid.Column="0" Orientation="Vertical"> <StackPanel> <StackPanel.Height> <MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0}+({1}/2)"> <TemplateBinding Path="ScrollBarYKnobPos" /> <TemplateBinding Path="ScrollBarYKnobHeight" /> </MultiBinding> </StackPanel.Height> </StackPanel> <Rectangle x:Name="ScrollBarYKnob" Width="{ThemeResource ScrollBarKnobWidth}" Height="18" Stroke="{ThemeResource ScrollBarKnobStrokeColor}" RadiusX="9" RadiusY="9" Fill="{ThemeResource ScrollBarKnobBackgroundColor}"> </Rectangle> </StackPanel>[/CODE] [ATTACH]158543[/ATTACH] [ATTACH]158544[/ATTACH] [ATTACH]158545[/ATTACH] [ATTACH]158546[/ATTACH] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
Apollo One
Contact us
RSS
Top
Bottom