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="ge2301" data-source="post: 1136642" data-attributes="member: 145639"><p>That could be also an option. But it would be easier with the solution I have posted some time before: <a href="https://forum.team-mediaportal.com/threads/new-skin-bluevision.129477/page-41#post-1132739" target="_blank">https://forum.team-mediaportal.com/threads/new-skin-bluevision.129477/page-41#post-1132739</a></p><p>[ATTACH]164685[/ATTACH]</p><p></p><p>I made a trial in the past and it worked well:</p><p>[code] <ControlTemplate x:Key="GridViewMovieItemTemplate"></p><p> <Border Name="mask" Background="White" CornerRadius="{StaticResource MediumRadius}" BorderThickness="0" BorderBrush="Black"/></p><p> <Grid Width="{StaticResource MEDIA_POSTER_WIDTH}" Height="{StaticResource MEDIA_POSTER_HEIGHT}" Margin="3,2,3,2" HorizontalAlignment="Center" VerticalAlignment="Center"></p><p> <Grid></p><p> <Grid.ColumnDefinitions></p><p> <ColumnDefinition Width="18"/></p><p> <ColumnDefinition Width="*"/></p><p> <ColumnDefinition Width="18"/></p><p> </Grid.ColumnDefinitions></p><p> <Grid.RowDefinitions></p><p> <RowDefinition Height="18" /></p><p> <RowDefinition Height="*" /></p><p> <RowDefinition Height="18" /></p><p> </Grid.RowDefinitions></p><p> </p><p> <Image Grid.Row="0" Grid.Column="0" Stretch="Fill" Margin="0" Opacity="1" Source="corner.png" /></p><p> <Image Grid.Row="1" Grid.Column="0" Stretch="Fill" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0" Opacity="1" Source="piece.png" /></p><p> <Image Grid.Row="2" Grid.Column="0" Stretch="Fill" Margin="0" Opacity="1" Source="corner.png" RenderTransformOrigin=".5,.5" ></p><p> <Image.RenderTransform></p><p> <RotateTransform Angle="270" /></p><p> </Image.RenderTransform></p><p> </Image></p><p> <Image Grid.Row="0" Grid.Column="1" Stretch="Fill" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0" Opacity="1" Source="piece.png" /></p><p> <Image Grid.Row="1" Grid.Column="1" Stretch="Fill" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0" Opacity="1" Source="piece.png" /></p><p> <Image Grid.Row="2" Grid.Column="1" Stretch="Fill" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0" Opacity="1" Source="piece.png" /> </p><p> <Image Grid.Row="0" Grid.Column="2" Stretch="Fill" Margin="0" Opacity="1" Source="corner.png" RenderTransformOrigin=".5,.5" ></p><p> <Image.RenderTransform></p><p> <RotateTransform Angle="90" /></p><p> </Image.RenderTransform></p><p> </Image></p><p> <Image Grid.Row="1" Grid.Column="2" Stretch="Fill" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0" Opacity="1" Source="piece.png" /></p><p> <Image Grid.Row="2" Grid.Column="2" Stretch="Fill" Margin="0" Opacity="1" Source="corner.png" RenderTransformOrigin=".5,.5" > </p><p> <Image.RenderTransform></p><p> <RotateTransform Angle="180" /></p><p> </Image.RenderTransform></p><p> </Image></p><p> </Grid></p><p> </Grid></p><p> </ControlTemplate>[/code]</p><p></p><p>Results in:</p><p>[ATTACH]164684[/ATTACH]</p><p></p><ul> <li data-xf-list-type="ul">Only 3 image tiles necessary (corner, center, side)<br /> </li> <li data-xf-list-type="ul">Radius size can be adjusted by changing the Row/column height of corner cells</li> </ul><p>I just have to create correct shadow tiles and add it to code for next version.</p></blockquote><p></p>
[QUOTE="ge2301, post: 1136642, member: 145639"] That could be also an option. But it would be easier with the solution I have posted some time before: [URL]https://forum.team-mediaportal.com/threads/new-skin-bluevision.129477/page-41#post-1132739[/URL] [ATTACH]164685[/ATTACH] I made a trial in the past and it worked well: [code] <ControlTemplate x:Key="GridViewMovieItemTemplate"> <Border Name="mask" Background="White" CornerRadius="{StaticResource MediumRadius}" BorderThickness="0" BorderBrush="Black"/> <Grid Width="{StaticResource MEDIA_POSTER_WIDTH}" Height="{StaticResource MEDIA_POSTER_HEIGHT}" Margin="3,2,3,2" HorizontalAlignment="Center" VerticalAlignment="Center"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="18"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="18"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="18" /> <RowDefinition Height="*" /> <RowDefinition Height="18" /> </Grid.RowDefinitions> <Image Grid.Row="0" Grid.Column="0" Stretch="Fill" Margin="0" Opacity="1" Source="corner.png" /> <Image Grid.Row="1" Grid.Column="0" Stretch="Fill" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0" Opacity="1" Source="piece.png" /> <Image Grid.Row="2" Grid.Column="0" Stretch="Fill" Margin="0" Opacity="1" Source="corner.png" RenderTransformOrigin=".5,.5" > <Image.RenderTransform> <RotateTransform Angle="270" /> </Image.RenderTransform> </Image> <Image Grid.Row="0" Grid.Column="1" Stretch="Fill" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0" Opacity="1" Source="piece.png" /> <Image Grid.Row="1" Grid.Column="1" Stretch="Fill" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0" Opacity="1" Source="piece.png" /> <Image Grid.Row="2" Grid.Column="1" Stretch="Fill" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0" Opacity="1" Source="piece.png" /> <Image Grid.Row="0" Grid.Column="2" Stretch="Fill" Margin="0" Opacity="1" Source="corner.png" RenderTransformOrigin=".5,.5" > <Image.RenderTransform> <RotateTransform Angle="90" /> </Image.RenderTransform> </Image> <Image Grid.Row="1" Grid.Column="2" Stretch="Fill" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0" Opacity="1" Source="piece.png" /> <Image Grid.Row="2" Grid.Column="2" Stretch="Fill" Margin="0" Opacity="1" Source="corner.png" RenderTransformOrigin=".5,.5" > <Image.RenderTransform> <RotateTransform Angle="180" /> </Image.RenderTransform> </Image> </Grid> </Grid> </ControlTemplate>[/code] Results in: [ATTACH]164684[/ATTACH] [LIST] [*]Only 3 image tiles necessary (corner, center, side) [*]Radius size can be adjusted by changing the Row/column height of corner cells [/LIST] I just have to create correct shadow tiles and add it to code for next version. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
BlueVision
Blue Vision
Contact us
RSS
Top
Bottom