Tuesday, 15 May 2012

c# - Xaml parser exception, Quote Expected, Silverlight -



c# - Xaml parser exception, Quote Expected, Silverlight -

i've been banging head on time , couldn't find cause of error, please help :/

public static controltemplate lookupeditnamecreate(string name) { string xaml = @"<controltemplate xmlns=""http://schemas.microsoft.com/client/2007"" xmlns:dxg=""http://schemas.devexpress.com/winfx/2008/xaml/grid""> <dxg:gridcontrol name=""part_gridcontrol""> <dxg:gridcontrol.columns> <dxg:gridcolumn fieldname=" + name + @"/> </dxg:gridcontrol.columns> <dxg:gridcontrol.view> <dxg:tableview autowidth=""true""/> </dxg:gridcontrol.view> </dxg:gridcontrol> </controltemplate>"; homecoming (controltemplate)xamlreader.load(xaml); }

i not sure can seek alter line:

<dxg:gridcolumn fieldname=" + name + @"/>

to

<dxg:gridcolumn fieldname=""" + name + @"""/>

c# silverlight xaml

No comments:

Post a Comment