WPF ellipse颜色设置
<Ellipse Name="ellipse1" Width="20" Height="20" Cursor="Hand" ToolTip="警示灯" Margin="35,12,723,512" Fill="Red">
bool isRed = (ellipse1.Fill as SolidColorBrush).Color.Equals(Colors.Red);
if (isRed)
{
ellipse1.Fill = new SolidColorBrush(Colors.Green);
}