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
BlueVision
Blue Vision
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: 1142606" data-attributes="member: 48495"><p>I thought to make a break, but then I got an idea how to implement the fading in media list:</p><p>[ATTACH]166677[/ATTACH] [ATTACH]166678[/ATTACH] [ATTACH]166679[/ATTACH]</p><p>Please ignore the duplicated knobs, I have no idea yet about the cause. But the listview itself looks good with this. And code is also not very complicated. I only need to distinguish horizontal/vertical gradient.</p><p></p><p>In principle I set the fade offsets depeding on knob position (relative to scrollviewer top/bottom)</p><p>[CODE=XML] <Style x:Key="LeftSideScrollViewerStyle" TargetType="{x:Type ScrollViewer}"></p><p> <Setter Property="Template"></p><p> <Setter.Value></p><p> <ControlTemplate TargetType="{x:Type ScrollViewer}"></p><p> <Grid x:Name="ScrollViewerGrid"></p><p> <Grid.OpacityMask></p><p> <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1"></p><p> <GradientStop Offset="0" Color="#00FFFFFF"/></p><p> <GradientStop Color="#FFFFFFFF"></p><p> <GradientStop.Offset></p><p> <MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0} &gt; 0 ? {1} : {2}"></p><p> <TemplateBinding Path="ScrollBarYKnobPos" /></p><p> <Binding Source="0.10" /></p><p> <Binding Source="0" /></p><p> </MultiBinding></p><p> </GradientStop.Offset></p><p> </GradientStop></p><p> <GradientStop Color="#FFFFFFFF"></p><p> <GradientStop.Offset></p><p> <MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0}+{1} &lt; {2} ? {3} : {4}"></p><p> <TemplateBinding Path="ScrollBarYKnobPos" /></p><p> <TemplateBinding Path="ScrollBarYKnobHeight" /></p><p> <TemplateBinding Path="ScrollBarYSize" /></p><p> <Binding Source="0.9" /></p><p> <Binding Source="1" /></p><p> </MultiBinding></p><p> </GradientStop.Offset></p><p> </GradientStop></p><p> <GradientStop Offset="1" Color="#00FFFFFF"/></p><p> </LinearGradientBrush ></p><p> </Grid.OpacityMask></p><p> <Grid.ColumnDefinitions></p><p>...[/CODE]</p></blockquote><p></p>
[QUOTE="morpheus_xx, post: 1142606, member: 48495"] I thought to make a break, but then I got an idea how to implement the fading in media list: [ATTACH]166677[/ATTACH] [ATTACH]166678[/ATTACH] [ATTACH]166679[/ATTACH] Please ignore the duplicated knobs, I have no idea yet about the cause. But the listview itself looks good with this. And code is also not very complicated. I only need to distinguish horizontal/vertical gradient. In principle I set the fade offsets depeding on knob position (relative to scrollviewer top/bottom) [CODE=XML] <Style x:Key="LeftSideScrollViewerStyle" TargetType="{x:Type ScrollViewer}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type ScrollViewer}"> <Grid x:Name="ScrollViewerGrid"> <Grid.OpacityMask> <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1"> <GradientStop Offset="0" Color="#00FFFFFF"/> <GradientStop Color="#FFFFFFFF"> <GradientStop.Offset> <MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0} > 0 ? {1} : {2}"> <TemplateBinding Path="ScrollBarYKnobPos" /> <Binding Source="0.10" /> <Binding Source="0" /> </MultiBinding> </GradientStop.Offset> </GradientStop> <GradientStop Color="#FFFFFFFF"> <GradientStop.Offset> <MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0}+{1} < {2} ? {3} : {4}"> <TemplateBinding Path="ScrollBarYKnobPos" /> <TemplateBinding Path="ScrollBarYKnobHeight" /> <TemplateBinding Path="ScrollBarYSize" /> <Binding Source="0.9" /> <Binding Source="1" /> </MultiBinding> </GradientStop.Offset> </GradientStop> <GradientStop Offset="1" Color="#00FFFFFF"/> </LinearGradientBrush > </Grid.OpacityMask> <Grid.ColumnDefinitions> ...[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
BlueVision
Blue Vision
Contact us
RSS
Top
Bottom