Export to XAML creates incorrect markup

It appears that exporting a project to XAML so it can be included as a resource file generates markup that is invalid. When I add the generated file, I get a bunch of errors about names already being defined.

Here is a snippet of the generated XAML:

 

    <Viewbox x:Key="Media-Pause">
        <Grid Width="48" Height="48" Visibility="Visible">
            <Grid Name="backgroundGrid" Visibility="Visible">
                <Rectangle Fill="#FF000000" Name="Rect" Visibility="Visible" />
                <Ellipse Fill="#FF000000" Name="Fill" Visibility="Collapsed" />
            </Grid>
        </Grid>
    </Viewbox>
    <Viewbox x:Key="Synchronize">
        <Grid Width="48" Height="48" Visibility="Visible">
            <Grid Name="backgroundGrid" Visibility="Visible">
                <Rectangle Fill="#FF000000" Name="Rect" Visibility="Visible" />
                <Ellipse Fill="#FF000000" Name="Fill" Visibility="Collapsed" />
            </Grid>
        </Grid>
    </Viewbox>

The names in bold are what the compiler is complaining about. Until this is fixed, I can't really any of the images other than to include them as actual PNG files, which I would rather not do.

 


1 Reply

SJ Stephen Jebaraj Syncfusion Team July 11, 2012 07:17 PM UTC

Hi Scott,

Thanks for reporting this issue.

We have fixed this issue and will update you with the new build before the end of the week through the Direct-Trac incident that you had created.

Best,
Stephen

Loader.
Up arrow icon