This question is locked. New answers and comments are not allowed.
Hi ,
Iam working in an Accounting software.In that we allow user to modify their form design and save it for future use. for this my client suggested serialization. The problem is we are using silverlight 4 . Xaml writer is supported by S4.Finally we decide to store xaml as xml and store in database and retrieve it by converting it into uicontrols.I have used following code and error ocuurs saying "event handler is not supported by xamlreader".Other problem is it converts only the controls in the first row of the grid.Other controls are not displayed.
Thanks,
Parameswari
code:Used to convert myxaml to string:XDocument doc = XDocument.Load("/Sampletwo;component/MainPage.xaml");IEnumerable<XElement> childElements =from el in doc.Elements()select el;foreach (XElement el in childElements)store = el.LastNode.ToString();Back to UIControls:UIElement tree = (UIElement)XamlReader.Load(store);grdLayoutRoot.Children.Add(tree);Iam working in an Accounting software.In that we allow user to modify their form design and save it for future use. for this my client suggested serialization. The problem is we are using silverlight 4 . Xaml writer is supported by S4.Finally we decide to store xaml as xml and store in database and retrieve it by converting it into uicontrols.I have used following code and error ocuurs saying "event handler is not supported by xamlreader".Other problem is it converts only the controls in the first row of the grid.Other controls are not displayed.
Thanks,
Parameswari