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: 1119738" data-attributes="member: 145639"><p>[USER=48495]@morpheus_xx[/USER]</p><p>thanks, I understood roughly the structure. But not clear for me is for example wthere and how TeamResources are defined.</p><p>Below example refers to ThemeResource Text Color and the opacity is changed according to watched/unwatched.</p><p></p><p>In case I link images do I need to refer to another resource? I couldn't find any xaml where resources are defined.</p><p></p><p>[code] <Label x:Name="ItemLabel" Grid.Row="0" Grid.Column="1" Content="{Binding SimpleTitle}" Color="{ThemeResource TextColor}" FontSize="{ThemeResource SmallFontSize}" 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>[/code]</p><p></p><p>Following makes MP2 just crash. All my changes leaded only to crashes so far <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>[code] <ControlTemplate x:Key="ListViewMovieFilterItemTemplate"></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> <ColumnDefinition Width="50"/></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}" Color="{ThemeResource TextColor}" FontSize="{ThemeResource SmallFontSize}" 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><!--<Ge2301/>--></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></p><p><!--<Ge2301/>--> [/code]</p></blockquote><p></p>
[QUOTE="ge2301, post: 1119738, member: 145639"] [USER=48495]@morpheus_xx[/USER] thanks, I understood roughly the structure. But not clear for me is for example wthere and how TeamResources are defined. Below example refers to ThemeResource Text Color and the opacity is changed according to watched/unwatched. In case I link images do I need to refer to another resource? I couldn't find any xaml where resources are defined. [code] <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>[/code] Following makes MP2 just crash. All my changes leaded only to crashes so far :D [code] <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/>--> [/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
Apollo One
Contact us
RSS
Top
Bottom