Blue Vision (2 Viewers)

osre

Retired Team Member
  • Premium Supporter
  • December 14, 2014
    775
    387
    Home Country
    Germany Germany
    Are there any binding failures printed to the logs like WPF does in VS Output window?
    If not we should add some logs.
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Are there any binding failures printed to the logs like WPF does in VS Output window?
    If not we should add some logs.
    There is a #DEFINE available to do such kind of debugging, but it's commented out by default (performance).

    But I think here the DataContext is not correct, should be probably the TemplatedParent (as it's the PlayerControl providing the MediaItem)
     

    osre

    Retired Team Member
  • Premium Supporter
  • December 14, 2014
    775
    387
    Home Country
    Germany Germany
    Are there any binding failures printed to the logs like WPF does in VS Output window?
    If not we should add some logs.
    There is a #DEFINE available to do such kind of debugging, but it's commented out by default (performance).

    But I think here the DataContext is not correct, should be probably the TemplatedParent (as it's the PlayerControl providing the MediaItem)
    Wouldn't it be better to have an cmd line argument to turn it on and off? Or a (hidden) setting?
     

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,741
    3,501
    Stuttgart
    Home Country
    Germany Germany
    Are there any binding failures printed to the logs like WPF does in VS Output window?
    If not we should add some logs.
    There is nothing in the logs about that :(

    There is a #DEFINE available to do such kind of debugging, but it's commented out by default (performance).
    But I think here the DataContext is not correct, should be probably the TemplatedParent (as it's the PlayerControl providing the MediaItem)
    I also thought about datacontext. "MediaItem" is part of FanArtHandlerModel as far as I understood. "CurrentMediaItem" is from "PlayerModel"? Hmm, about #DEFINE I have no clue o_O;)
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Please change following things:
    <mp_special_controls:playerControl Margin="10" PlayerContext="CurrentPlayer">
    <mp_special_controls:playerControl.TemplateControl>
    <Grid Margin="-30, -10,-15,0" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}">

    And:
    <Control.IsVisible>
    <MultiBinding Converter="{StaticResource MediaItemAspectToBoolConverter}">
    <Binding Path="MediaItem" />
    <Binding Source="{x:confused:tatic aspect:MovieAspect.ASPECT_ID}" />
    </MultiBinding>
    </Control.IsVisible>

    Then it works.
    Btw, the "DataContext" was used in the commented area below and my fault as "MediaItem" ;)
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany

    Users who are viewing this thread

    Top Bottom