SL 2 Beta 1 Bug: Unknown element: Point - with simple workaround
Last post 05-08-2008 2:45 PM by lneir. 0 replies.
Sort Posts:
05-08-2008 2:45 PM
SL 2 Beta 1 Bug: Unknown element: Point - with simple workaround

To re-create problem add the following xaml:

<UserControl x:Class="SLEllipseGeometryBug.Page"

xmlns="http://schemas.microsoft.com/client/2007"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

Width="400" Height="300">

<Grid x:Name="LayoutRoot" Background="White">

<Grid.Clip>

<EllipseGeometry RadiusX="100" RadiusY="100">

<EllipseGeometry.Center>

<Point X="50" Y="50"/>

</EllipseGeometry.Center>

</EllipseGeometry>

</Grid.Clip>

</Grid>

</UserControl>

 

This does not compile and gives error:

Unkown element: Point [17: line Position: 44]

Seems the parser does not like setting Center on the EllipseGeometry in this manner....works fine in WPF and syntax should be fine for Silverlight as well

Simple workaround is:

<EllipseGeometry RadiusX="100" RadiusY="100" Center="50,50"/>

lneir

Joined on 09-25-2007
Posts 10