[fixed] LinearGradients are not starting and ending on same positions as in WPF (1 Viewer)

morpheus_xx

Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    The reflexion overlay in screenshots below uses a gradient brush. But the positions do not match the WPF version. The issue is that the WPF-gradient ends in another position than our MP2 gradient.

    Code:
                <Canvas Grid.Column="0" Grid.Row="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                  <Canvas.Background>
                    <LinearGradientBrush StartPoint="[B]1,0[/B]" EndPoint="[B]0.65,0.65[/B]">
                      <GradientStop Offset="0" Color="#4AFFFFFF"/>
                      <GradientStop Offset="0.961" Color="#40FFFFFF"/>
                      <GradientStop Offset="1" Color="#00FFFFFF"/>
                    </LinearGradientBrush >
                  </Canvas.Background>
                </Canvas>

    1st attached screenshot is taken from MS Expresion Blend and shows correct bordering and the correct gradient
    2nd attached screenshot shows the glassy frame overlay rendered in MP2 using exact the same xaml code, the content inside the glassy frame does not matter
     

    Attachments

    • Blend_Original.png
      Blend_Original.png
      116.1 KB
    • MPF_Not_Working.png
      MPF_Not_Working.png
      135 KB

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #4
    AW: LinearGradients are not starting and ending on same positions as in WPF

    It's working fine now. :D a lot
     

    Users who are viewing this thread

    Top Bottom