Use ShaderEffect instead Rectangle.