- Admin
- #51
Ändere folgenden Code in MediaStyles.xaml im TE theme Verzeichnis. Lass mich wissen, ob du dann folder.jpg in "Medienbibliothek durchsuchen" sehen kannst.Na dann ... bei mir läuft es einfach nicht so wie vom Entwicklerteam geplant und realisiert. Was soll's.
Gruß
Blue Max
XML:
<ControlTemplate x:Key="GridViewContainerItemTemplate">
<Grid x:Name="ItemControl">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="{StaticResource GRIDVIEW_FILTER_WIDTH}"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="{StaticResource GRIDVIEW_FILTER_HEIGHT}"/>
</Grid.RowDefinitions>
<Image x:Name="ItemTypeImage" Grid.Row="0" Grid.Column="0" Stretch="Uniform" Margin="5,5,5,40"
Width="{StaticResource MEDIA_THUMB_WIDTH_L}" Height="{StaticResource MEDIA_THUMB_HEIGHT_L}">
<Image.Source>
<fanart:FanArtImageSource fanart:FanArtMediaType="Undefined" fanart:FanArtType="Thumbnail" fanart:FanArtName="{Binding FirstMediaItem.MediaItemId}"
fanart:MaxWidth="{StaticResource FANART_POSTER_WIDTH}" fanart:MaxHeight="{StaticResource FANART_POSTER_HEIGHT}"/>
</Image.Source>
</Image>
<Image x:Name="ItemTypeImage2" Grid.Row="0" Grid.Column="0" Stretch="Uniform" Margin="40" Source="defaultFolder.png"
Width="{StaticResource MEDIA_THUMB_WIDTH_L}" Height="{StaticResource MEDIA_THUMB_HEIGHT_L}"
IsVisible="{Binding ElementName=ItemTypeImage, Path=!HasImage}"/>
<Label x:Name="ItemLabel" Grid.Row="0" Grid.Column="0" Content="{Binding SimpleTitle}" Color="{ThemeResource TextColor}" Margin="0,0,0,10"
FontSize="{ThemeResource SmallFontSize}" HorizontalAlignment="Center" VerticalAlignment="Bottom" />
<Image Grid.Row="0" Grid.Column="0" Source="episode_thumb_focus.png" HorizontalAlignment="Center"
VerticalAlignment="Center" Stretch="Fill" Margin="-2" Width="{StaticResource GRIDVIEW_FILTER_WIDTH}" Height="{StaticResource GRIDVIEW_FILTER_WIDTH}"
IsVisible="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Button}},Path=HasFocus}">
</Image>
</Grid>
</ControlTemplate>