Issue
I want to use PancakeView
with only 2 colors for gradient background. Looks like it requires 3 colors. Is there any option or sample syntax?
<LinearGradientBrush x:Name="Theme" EndPoint="0,1">
<GradientStop Color="#48b6a6" Offset="0.1" />
<GradientStop Color="#2b78d4" Offset="1.0" />
</LinearGradientBrush>
Solution
Just put it in PancakeView
syntax from
<LinearGradientBrush x:Name="Theme" EndPoint="0,1">
<GradientStop Color="#48b6a6" Offset="0.1"/>
<GradientStop Color="#2b78d4" Offset="1.0"/>
</LinearGradientBrush>
To
<pancake:PancakeView BackgroundGradientEndPoint="0,1" ...>
<pancake:PancakeView.BackgroundGradientStops>
<pancake:GradientStopCollection>
<pancake:GradientStop Color="#48b6a6" Offset="0.1"/>
<pancake:GradientStop Color="#2b78d4" Offset="1"/>
</pancake:GradientStopCollection>
</pancake:PancakeView.BackgroundGradientStops>
...
</pancake:PancakeView>
Answered By - Cfun
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.