- March 24, 2007
- 12,070
- 7,459
- Home Country
-
Germany
- Moderator
- #1
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.
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
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