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
Windows 10 Theme for BlueVision skin
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="ge2301" data-source="post: 1162554" data-attributes="member: 145639"><p>[USER=48495]@morpheus_xx[/USER] </p><p>I hope this is something you can answer easily. I have often the problem, that the Scrollbars next to a Listview do not have proper margins.</p><p>So far I adjusted the margins directly in the style affecting all screens of course. I tried something like below (!-- --), but never could make it work.</p><p>My target is, that I can define for evey Listview individually how close the Scrollbar is to the content.</p><p></p><p>[CODE=XML] <ListView DockPanel.Dock="Center" x:Name="lvStreams" Margin="-31,35,-60,50" HorizontalAlignment="Stretch"</p><p> VerticalAlignment="Stretch" Style="{ThemeResource WebRadioContainerStyle}"</p><p> ItemsSource="{Binding Path=AllRadioStreams}" ></p><p> <ListView.Resources></p><p> <CommandList x:Key="Menu_Command"></p><p> <Command Source="{StaticResource Model}" Path="SelectStream"></p><p> <Command.Parameters></p><p> <LateBoundValue BindingValue="{Binding}"/></p><p> </Command.Parameters></p><p> </Command></p><p> </CommandList></p><p> <!--Style TargetType="{x:Type ScrollViewer}"></p><p> <Style.Triggers></p><p> <Trigger Property="Name" Value="VerticalScrollBar"></p><p> <Setter Property="Margin" Value="20,0,-60,0"/></p><p> </Trigger></p><p> </Style.Triggers></p><p> </Style--></p><p> </ListView.Resources></p><p> </ListView>[/CODE]</p></blockquote><p></p>
[QUOTE="ge2301, post: 1162554, member: 145639"] [USER=48495]@morpheus_xx[/USER] I hope this is something you can answer easily. I have often the problem, that the Scrollbars next to a Listview do not have proper margins. So far I adjusted the margins directly in the style affecting all screens of course. I tried something like below (!-- --), but never could make it work. My target is, that I can define for evey Listview individually how close the Scrollbar is to the content. [CODE=XML] <ListView DockPanel.Dock="Center" x:Name="lvStreams" Margin="-31,35,-60,50" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Style="{ThemeResource WebRadioContainerStyle}" ItemsSource="{Binding Path=AllRadioStreams}" > <ListView.Resources> <CommandList x:Key="Menu_Command"> <Command Source="{StaticResource Model}" Path="SelectStream"> <Command.Parameters> <LateBoundValue BindingValue="{Binding}"/> </Command.Parameters> </Command> </CommandList> <!--Style TargetType="{x:Type ScrollViewer}"> <Style.Triggers> <Trigger Property="Name" Value="VerticalScrollBar"> <Setter Property="Margin" Value="20,0,-60,0"/> </Trigger> </Style.Triggers> </Style--> </ListView.Resources> </ListView>[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
BlueVision
Windows 10 Theme for BlueVision skin
Contact us
RSS
Top
Bottom