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
Submit: Bug Reports
TV Guide Seach button not working
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: 1288777" data-attributes="member: 145639"><p>[USER=164672]@TVWatcher[/USER]</p><p>I could fix it, the solution was easy. We have already a tooglePause command, that toggles between play and pause. Accordingly I didn't need to add 2 separate commands pause and play as initially tought. The fix will be part of the next release. I can not offer a download fix, because my files are part of the unreleased MP2.4.1 and have other changes included that will not work on your system yet.</p><p></p><p>As you know coding, you may also to fix it for yourself.</p><ul> <li data-xf-list-type="ul">Open C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\WMCSkin\Skin\WMCSkin\themes\default\styles\Buttons.xml with an text editor (you may better copy it to dektop and copy it back later, because you might be asked for admin rights) and look for</li> </ul><p>[CODE=xml] <Style x:Key="PlayButtonStyle" TargetType="{x:Type Button}"></p><p> <Setter Property="Template"></p><p> <Setter.Value></p><p> <ControlTemplate TargetType="{x:Type Button}"></p><p> <Grid></p><p> <Image x:Name="image" Source="PlayerControl\PLAY.NOFOCUS.PNG" Stretch="Uniform" Height="45" Width="45" VerticalAlignment="Center"/></p><p> </Grid></p><p> <ControlTemplate.Triggers></p><p> <Trigger Property="HasFocus" Value="True"></p><p> <Setter TargetName="image" Property="Source" Value="PlayerControl\PLAY.FOCUS.PNG"/></p><p> </Trigger></p><p> </ControlTemplate.Triggers></p><p> </ControlTemplate></p><p> </Setter.Value></p><p> </Setter></p><p> </Style></p><p></p><p> <Style x:Key="PauseButtonStyle" TargetType="{x:Type Button}"></p><p> <Setter Property="Template"></p><p> <Setter.Value></p><p> <ControlTemplate TargetType="{x:Type Button}"></p><p> <Grid></p><p> <Image x:Name="image" Source="PlayerControl\PAUSE.NOFOCUS.PNG" Stretch="Uniform" Height="45" Width="45" VerticalAlignment="Center"/></p><p> </Grid></p><p> <ControlTemplate.Triggers></p><p> <Trigger Property="HasFocus" Value="True"></p><p> <Setter TargetName="image" Property="Source" Value="PlayerControl\PAUSE.FOCUS.PNG"/></p><p> </Trigger></p><p> </ControlTemplate.Triggers></p><p> </ControlTemplate></p><p> </Setter.Value></p><p> </Setter></p><p> </Style>[/CODE]</p><p></p><p>and replace it with</p><p>[CODE=xml] <Style x:Key="PlayPauseButtonStyle" TargetType="{x:Type Button}"></p><p> <Setter Property="Template"></p><p> <Setter.Value></p><p> <ControlTemplate TargetType="{x:Type Button}" ></p><p> <Grid></p><p> <Image Source="PlayerControl\PLAY.NOFOCUS.PNG" Stretch="Uniform" Height="45" Width="45" Margin="0" VerticalAlignment="Center"></p><p> <Image.IsVisible></p><p> <MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0} &amp;&amp; {1}"></p><p> <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="!HasFocus"/></p><p> <Binding Path="CanPlay"/></p><p> </MultiBinding></p><p> </Image.IsVisible></p><p> </Image></p><p> <Image Source="PlayerControl\PLAY.FOCUS.PNG" Stretch="Uniform" Height="45" Width="45" Margin="0" VerticalAlignment="Center"></p><p> <Image.IsVisible></p><p> <MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0} &amp;&amp; {1}"></p><p> <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="HasFocus"/></p><p> <Binding Path="CanPlay"/></p><p> </MultiBinding></p><p> </Image.IsVisible></p><p> </Image></p><p> <Image Source="PlayerControl\PAUSE.NOFOCUS.PNG" Stretch="Uniform" Height="45" Width="45" Margin="0" VerticalAlignment="Center"></p><p> <Image.IsVisible></p><p> <MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0} &amp;&amp; {1}"></p><p> <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="!HasFocus"/></p><p> <Binding Path="CanPause"/></p><p> </MultiBinding></p><p> </Image.IsVisible></p><p> </Image></p><p> <Image Source="PlayerControl\PAUSE.FOCUS.PNG" Stretch="Uniform" Height="45" Width="45" Margin="0" VerticalAlignment="Center"></p><p> <Image.IsVisible></p><p> <MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0} &amp;&amp; {1}"></p><p> <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="HasFocus"/></p><p> <Binding Path="CanPause"/></p><p> </MultiBinding></p><p> </Image.IsVisible></p><p> </Image></p><p> </Grid></p><p> </ControlTemplate></p><p> </Setter.Value></p><p> </Setter></p><p> </Style>[/CODE]</p><p></p><p>Now open C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\WMCSkin\Skin\WMCSkin\themes\default\styles\MediaStyles.xaml with a text editor and look for (there are several positions!):</p><p>[CODE=xml] <Button x:Name="PlayButton" Margin="5,0,5,0" Style="{ThemeResource PlayButtonStyle}"</p><p> Command="{Command Play}"/></p><p> <Button x:Name="PauseButton" Margin="5,0,5,0" Style="{ThemeResource PauseButtonStyle}"</p><p> Command="{Command Pause}"/>[/CODE]</p><p>and replace ALL of them with</p><p>[CODE=xml] <Button x:Name="PlayPauseButton" Margin="5,0,5,0" Style="{ThemeResource PlayPauseButtonStyle}"</p><p> Command="{Command TogglePause}"/>[/CODE]</p></blockquote><p></p>
[QUOTE="ge2301, post: 1288777, member: 145639"] [USER=164672]@TVWatcher[/USER] I could fix it, the solution was easy. We have already a tooglePause command, that toggles between play and pause. Accordingly I didn't need to add 2 separate commands pause and play as initially tought. The fix will be part of the next release. I can not offer a download fix, because my files are part of the unreleased MP2.4.1 and have other changes included that will not work on your system yet. As you know coding, you may also to fix it for yourself. [LIST] [*]Open C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\WMCSkin\Skin\WMCSkin\themes\default\styles\Buttons.xml with an text editor (you may better copy it to dektop and copy it back later, because you might be asked for admin rights) and look for [/LIST] [CODE=xml] <Style x:Key="PlayButtonStyle" TargetType="{x:Type Button}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type Button}"> <Grid> <Image x:Name="image" Source="PlayerControl\PLAY.NOFOCUS.PNG" Stretch="Uniform" Height="45" Width="45" VerticalAlignment="Center"/> </Grid> <ControlTemplate.Triggers> <Trigger Property="HasFocus" Value="True"> <Setter TargetName="image" Property="Source" Value="PlayerControl\PLAY.FOCUS.PNG"/> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style> <Style x:Key="PauseButtonStyle" TargetType="{x:Type Button}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type Button}"> <Grid> <Image x:Name="image" Source="PlayerControl\PAUSE.NOFOCUS.PNG" Stretch="Uniform" Height="45" Width="45" VerticalAlignment="Center"/> </Grid> <ControlTemplate.Triggers> <Trigger Property="HasFocus" Value="True"> <Setter TargetName="image" Property="Source" Value="PlayerControl\PAUSE.FOCUS.PNG"/> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style>[/CODE] and replace it with [CODE=xml] <Style x:Key="PlayPauseButtonStyle" TargetType="{x:Type Button}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type Button}" > <Grid> <Image Source="PlayerControl\PLAY.NOFOCUS.PNG" Stretch="Uniform" Height="45" Width="45" Margin="0" VerticalAlignment="Center"> <Image.IsVisible> <MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0} && {1}"> <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="!HasFocus"/> <Binding Path="CanPlay"/> </MultiBinding> </Image.IsVisible> </Image> <Image Source="PlayerControl\PLAY.FOCUS.PNG" Stretch="Uniform" Height="45" Width="45" Margin="0" VerticalAlignment="Center"> <Image.IsVisible> <MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0} && {1}"> <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="HasFocus"/> <Binding Path="CanPlay"/> </MultiBinding> </Image.IsVisible> </Image> <Image Source="PlayerControl\PAUSE.NOFOCUS.PNG" Stretch="Uniform" Height="45" Width="45" Margin="0" VerticalAlignment="Center"> <Image.IsVisible> <MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0} && {1}"> <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="!HasFocus"/> <Binding Path="CanPause"/> </MultiBinding> </Image.IsVisible> </Image> <Image Source="PlayerControl\PAUSE.FOCUS.PNG" Stretch="Uniform" Height="45" Width="45" Margin="0" VerticalAlignment="Center"> <Image.IsVisible> <MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0} && {1}"> <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="HasFocus"/> <Binding Path="CanPause"/> </MultiBinding> </Image.IsVisible> </Image> </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style>[/CODE] Now open C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\WMCSkin\Skin\WMCSkin\themes\default\styles\MediaStyles.xaml with a text editor and look for (there are several positions!): [CODE=xml] <Button x:Name="PlayButton" Margin="5,0,5,0" Style="{ThemeResource PlayButtonStyle}" Command="{Command Play}"/> <Button x:Name="PauseButton" Margin="5,0,5,0" Style="{ThemeResource PauseButtonStyle}" Command="{Command Pause}"/>[/CODE] and replace ALL of them with [CODE=xml] <Button x:Name="PlayPauseButton" Margin="5,0,5,0" Style="{ThemeResource PlayPauseButtonStyle}" Command="{Command TogglePause}"/>[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Submit: Bug Reports
TV Guide Seach button not working
Contact us
RSS
Top
Bottom