Код: Выделить всё
string attributeValue = "Hello" + Environment.NewLine + " Hello 2";
XElement element = new XElement("test");
XElement subElement = new XElement("subTest");
XAttribute attribute = new XAttribute("key", "Hello");
XAttribute attribute2 = new XAttribute("key2", attributeValue);
subElement.Add(attribute);
subElement.Add(attribute2);
element.Add(subElement);
Console.Write(element.ToString());
Console.ReadLine();
У кого-нибудь есть идеи?
Хотя я установил разрешение нескольких строк int свойство поля в шаблоне.
Подробнее здесь: https://stackoverflow.com/questions/186 ... -into-xdxa
Мобильная версия