Why does setting LinearGradientBrush.WrapMode to Clamp fail with ArgumentException ("parameter is not valid")?

I can confirm this with VS2015 on Windows 8.1.

This looks like a bug to me, as Clamp i.e. untiled continuation with, probably the last color would be quite useful.

You can try to workaround with InterpolationColors but that requires some knowledge of the sizes to fill..

See here and espcially here for code examples for using InterpolationColors

Update: Lars' idea looks also very interesting: Create a tile with the LinearGradientBrush and then use it with a TextureBrush..