请问以下css渐变的wpf等价物是什么
background-image: -webkit-gradient(linear, 0 0, 0 27, from(#003489), color-stop(0.074, #003485), color-stop(0.111, #01358b), to(#003788));
答案 0 :(得分:0)
LinearGradientBrush gradientBrush = new LinearGradientBrush( Color.FromRgb( 0, 20, 54), Color.FromRgb(0, 21, 55), new Point(0, 0), new Point(0, 27));
Background = gradientBrush;
虽然这不是你所要求的完全,但它应该为你提供指导!快乐的编码