Hi, help me please!
How can i change alpha channel of DividerColor in GradientStop?
I want something like this:
<Rectangle ux:Class="Divider" Height="0.1">
<float4 ux:Global="DividerColor" ux:Value="#a542db" />
<LinearGradient StartPoint="0,0" EndPoint="1,0">
<GradientStop Offset="0.0" Color="DividerColor" /> <!-- alpha is 0 -->
<GradientStop Offset="0.5" Color="DividerColor" /> <!-- alpha is 1 -->
<GradientStop Offset="1.0" Color="DividerColor" /> <!-- alpha is 0 -->
</LinearGradient>
</Rectangle>
This is don’t work…
And GradientStop don’t have Opacity property.
<float3 ux:Global="DividerColor" ux:Value="#a542db" />
<!--...-->
<GradientStop Offset="0.0" Color="DividerColor,1.0" />
<GradientStop Offset="0.0" Color="DividerColor + 1.0" />
<GradientStop Offset="0.0" Color="{DividerColor},1.0" />
<GradientStop Offset="0.0" Color="float4(DividerColor,1.0)" />
Can i append float to float3 and get float4?
Or can i create custom function for ux expressions like this?