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="ge2301" data-source="post: 1119753" data-attributes="member: 145639"><p>I followed your example before checking something else and MP2 directly crashes when pressing the movie button.</p><p>Afterwards I added [Grid.Row="0" Grid.Column="1"], because it's nowhere defined where MP2 should place the picture.</p><p></p><p>[code] <ControlTemplate x:Key="ListViewMovieItemTemplate"></p><p> <Grid x:Name="ItemControl" Margin="8,0,8,0"></p><p> <Grid.ColumnDefinitions></p><p> <ColumnDefinition Width="Auto"/></p><p> <ColumnDefinition Width="*"/></p><p> </Grid.ColumnDefinitions></p><p> <Grid.RowDefinitions></p><p> <RowDefinition Height="Auto"/></p><p> <RowDefinition Height="Auto"/></p><p> </Grid.RowDefinitions></p><p></p><p> <Label x:Name="ItemLabel" Grid.Row="0" Grid.Column="1" Content="{Binding SimpleTitle}" FontSize="{ThemeResource SmallFontSize}" Color="{ThemeResource TextColor}" FontFamily="DefaultBold"></p><p> <Label.Opacity></p><p> <MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0} ? {1} : {2}"></p><p> <!--<Binding Path="PlayCount"/>--></p><p> <Binding RelativeSource="{RelativeSource Mode=FindAncestor,AncestorType={x:Type Button}}" Path="HasFocus"/></p><p> <Binding Source="1.0"/></p><p> <Binding Source="0.6"/></p><p> </MultiBinding></p><p> </Label.Opacity></p><p> </Label></p><p></p><p> <Image Grid.Row="0" Grid.Column="1"></p><p> <Image.Source></p><p> <MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0} == 0 ? {1} : {2}"></p><p> <Binding Path="PlayCount"/></p><p> <Binding Source="unwatched_flag.png"/></p><p> <Binding Source="watched_flag.png"/></p><p> </MultiBinding></p><p> </Image.Source></p><p> </Image>[/code]</p><p></p><p>Edit: I tried severel things and looked into other skins, always with the result MP2 crashes back to desktop. As I mentioned I'm also not sure how the position is defined, in your example there is no position. Even if I add Grid.Row="0" Grid.Column="1", not sure how it can work, because already "itemLabel" is written there...</p><p></p><p>Gridview also doesn't work. I just took over the same code as from Titanium skin.</p><p>Result is again MP2 crash ... I have no idea what to do <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p><p></p><p>[code] <ControlTemplate x:Key="GridViewMovieItemTemplate"></p><p> <Grid></p><p> <Image Source="MediaItem_Shadow.png" Margin="-7,-4,-8,-6"/></p><p> <Image Width="{StaticResource MEDIA_POSTER_WIDTH}" Height="{StaticResource MEDIA_POSTER_HEIGHT}" Stretch="UniformToFill" FallbackSource="VideoLarge.png"</p><p> OpacityMask="{ThemeResource MediaItemsOpacityBrush}"></p><p> <Image.Source></p><p> <fanart:FanArtImageSource fanart:FanArtMediaType="Movie" fanart:FanArtType="Poster" fanart:FanArtName="{Binding SimpleTitle}"</p><p> fanart:MaxWidth="{StaticResource FANART_POSTER_WIDTH}" fanart:MaxHeight="{StaticResource FANART_POSTER_HEIGHT}"/></p><p> </Image.Source></p><p> </Image></p><p> </p><p><!-- ge2301 --> </p><p> <Image Source="unwatched_flag.png" HorizontalAlignment="Left" VerticalAlignment="Top"></p><p> <Image.IsVisible></p><p> <Binding Path="PlayCount" Converter="{StaticResource ExpressionValueConverter}" ConverterParameter="{}{0} == 0"/></p><p> </Image.IsVisible></p><p> </Image></p><p><!-- ge2301 --> </p><p> </p><p> </Grid></p><p> </ControlTemplate>[/code]</p><p></p><p>Edit</p><p>Need to sleep , having a busy week and only once again time on Wednesday evening for 1-2 hours. Friday I'm on business trip to Germany for 8 days. On company laptop I have no admin rights, so no chance to work with MP2 there <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite12" alt="o_O" title="Er... what? o_O" loading="lazy" data-shortname="o_O" /></p></blockquote><p></p>
[QUOTE="ge2301, post: 1119753, member: 145639"] I followed your example before checking something else and MP2 directly crashes when pressing the movie button. Afterwards I added [Grid.Row="0" Grid.Column="1"], because it's nowhere defined where MP2 should place the picture. [code] <ControlTemplate x:Key="ListViewMovieItemTemplate"> <Grid x:Name="ItemControl" Margin="8,0,8,0"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <Label x:Name="ItemLabel" Grid.Row="0" Grid.Column="1" Content="{Binding SimpleTitle}" FontSize="{ThemeResource SmallFontSize}" Color="{ThemeResource TextColor}" FontFamily="DefaultBold"> <Label.Opacity> <MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0} ? {1} : {2}"> <!--<Binding Path="PlayCount"/>--> <Binding RelativeSource="{RelativeSource Mode=FindAncestor,AncestorType={x:Type Button}}" Path="HasFocus"/> <Binding Source="1.0"/> <Binding Source="0.6"/> </MultiBinding> </Label.Opacity> </Label> <Image Grid.Row="0" Grid.Column="1"> <Image.Source> <MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0} == 0 ? {1} : {2}"> <Binding Path="PlayCount"/> <Binding Source="unwatched_flag.png"/> <Binding Source="watched_flag.png"/> </MultiBinding> </Image.Source> </Image>[/code] Edit: I tried severel things and looked into other skins, always with the result MP2 crashes back to desktop. As I mentioned I'm also not sure how the position is defined, in your example there is no position. Even if I add Grid.Row="0" Grid.Column="1", not sure how it can work, because already "itemLabel" is written there... Gridview also doesn't work. I just took over the same code as from Titanium skin. Result is again MP2 crash ... I have no idea what to do :D [code] <ControlTemplate x:Key="GridViewMovieItemTemplate"> <Grid> <Image Source="MediaItem_Shadow.png" Margin="-7,-4,-8,-6"/> <Image Width="{StaticResource MEDIA_POSTER_WIDTH}" Height="{StaticResource MEDIA_POSTER_HEIGHT}" Stretch="UniformToFill" FallbackSource="VideoLarge.png" OpacityMask="{ThemeResource MediaItemsOpacityBrush}"> <Image.Source> <fanart:FanArtImageSource fanart:FanArtMediaType="Movie" fanart:FanArtType="Poster" fanart:FanArtName="{Binding SimpleTitle}" fanart:MaxWidth="{StaticResource FANART_POSTER_WIDTH}" fanart:MaxHeight="{StaticResource FANART_POSTER_HEIGHT}"/> </Image.Source> </Image> <!-- ge2301 --> <Image Source="unwatched_flag.png" HorizontalAlignment="Left" VerticalAlignment="Top"> <Image.IsVisible> <Binding Path="PlayCount" Converter="{StaticResource ExpressionValueConverter}" ConverterParameter="{}{0} == 0"/> </Image.IsVisible> </Image> <!-- ge2301 --> </Grid> </ControlTemplate>[/code] Edit Need to sleep , having a busy week and only once again time on Wednesday evening for 1-2 hours. Friday I'm on business trip to Germany for 8 days. On company laptop I have no admin rights, so no chance to work with MP2 there o_O [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
Apollo One
Contact us
RSS
Top
Bottom