Hi,
I have exported two files in xaml format.Now i want to merge those two files in one.how can it will possible?
Here my code example:
string _xaml1=exported xaml;
string _xaml2=exported xaml data;
XamlFormatProvider _provider = new XamlFormatProvider();
Telerik.Windows.Documents.Model.RadDocument _t = new RadDocument();
XamlFormatProvider xamlProvider = new XamlFormatProvider();
_t = _provider.Import(_xaml1);
_n = _provider.Import(_xaml2);
foreach (Telerik.Windows.Documents.Model.Section section in _n.Sections)
{
Section copySection = section.CreateDeepCopy() as Section;
_n.Sections.Remove(section);
_t.Sections.Add(copySection);
}
BUT HERE I am getting error while using import method.
Please give me any idea for that.
Thanks,
I have exported two files in xaml format.Now i want to merge those two files in one.how can it will possible?
Here my code example:
string _xaml1=exported xaml;
string _xaml2=exported xaml data;
XamlFormatProvider _provider = new XamlFormatProvider();
Telerik.Windows.Documents.Model.RadDocument _t = new RadDocument();
XamlFormatProvider xamlProvider = new XamlFormatProvider();
_t = _provider.Import(_xaml1);
_n = _provider.Import(_xaml2);
foreach (Telerik.Windows.Documents.Model.Section section in _n.Sections)
{
Section copySection = section.CreateDeepCopy() as Section;
_n.Sections.Remove(section);
_t.Sections.Add(copySection);
}
BUT HERE I am getting error while using import method.
Please give me any idea for that.
Thanks,