It looks like there's a typo in their XAML - they're missing an xmlns=
before the namespace URI:
string xaml = "<Ellipse"
+ " Name=\"EllipseAdded\" Width=\"300.5\" Height=\"200\" Fill=\"Red\""
+ " xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"/>";
(Line wrapped for readability.)