<Image>
<Image.Source>
<MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0} == 0 ? {1} : {2}">
<Binding Path="PlayCount"/>
<Binding Source="unwatched.png"/>
<Binding Source="watched.png"/>
</MultiBinding>
</Image.Source>
</Image>
<Label x:Name="ItemLabel" Grid.Row="0" Grid.Column="1" Content="{Binding SimpleTitle}" Color="{ThemeResource TextColor}" FontSize="{ThemeResource SmallFontSize}" 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>
<ControlTemplate x:Key="ListViewMovieFilterItemTemplate">
<Grid x:Name="ItemControl" Margin="8,0,8,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="50"/>
</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}" Color="{ThemeResource TextColor}" FontSize="{ThemeResource SmallFontSize}" 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>
<!--<Ge2301/>-->
<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>
<!--<Ge2301/>-->
ThemeResources are defined inside the Skin\Themes\default\...xaml. The "ThemeResource" only means, that the resource can be overridden by themes. WPF doesn't know that MarkupExtension, it's MPF special.. But not clear for me is for example wthere and how TeamResources are defined.
See my quote above, it should work already that way. Images can be referenced only by their name and are looked up from the images subfolder of:In case I link images do I need to refer to another resource? I couldn't find any xaml where resources are defined.
<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>
<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>
This is no excuse, simply copy MP2-Client folder to USB stick, xaml files can be edited by notepad as well and live testedOn company laptop I have no admin rights, so no chance to work with MP2 there
If MP2 crashes, then please look into the MP2-Client.log. There all xaml parsing errors are logged with filename and message to check.
This is no excuse, simply copy MP2-Client folder to USB stick, xaml files can be edited by notepad as well and live testedOn company laptop I have no admin rights, so no chance to work with MP2 there