40 references to XAttribute
System.Activities.Presentation (7)
System.Activities.Presentation\System\Activities\Presentation\View\NamespaceDisplayAutomationPeer.cs (2)
28new XAttribute("Status", namespaceDisplay.IsInvalid ? "Invalid" : "Valid"), 29new XAttribute("ErrorMessage", namespaceDisplay.ErrorMessage));
System.Activities.Presentation\System\Activities\Presentation\View\VBIdentifierDesigner.xaml.cs (2)
204new XAttribute("Status", vbIdentifier.IsValid ? "Valid" : "Invalid"), 205new XAttribute("WarningMessage", vbIdentifier.ErrorMessage));
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditorAutomationPeer.cs (3)
27new XAttribute("Status", textBox.HasErrors ? "Invalid" : "Valid"), 28new XAttribute("EditingState", textBox.EditingState.ToString()), 29new XAttribute("ErrorMessage", String.IsNullOrEmpty(textBox.ErrorMessage) ? String.Empty : textBox.ErrorMessage));
System.Data.Services.Design (1)
System\Data\EntityModel\EntityClassGenerator.cs (1)
553e.Add(new XAttribute(newNamespace.GetName(attribute.Name.LocalName), attribute.Value));
System.ServiceModel.Web (23)
System\ServiceModel\Dispatcher\HelpHtmlBuilder.cs (23)
77new XElement(HtmlTdElementName, new XAttribute(HtmlTitleAttributeName, BuildFullUriTemplate(baseUri, operationHelpInfo.UriTemplate)), 79new XAttribute(HtmlRelAttributeName, HtmlOperationClass), 80new XAttribute(HtmlHrefAttributeName, String.Format(CultureInfo.InvariantCulture, HelpOperationPageUrl, operationHelpInfo.Name)), operationHelpInfo.Method)), 89firstTr.Descendants(HtmlTdElementName).First().Add(new XAttribute(HtmlRowspanAttributeName, rowspan)); 99firstTr.Descendants(HtmlTdElementName).First().Add(new XAttribute(HtmlRowspanAttributeName, rowspan)); 101document.Descendants(HtmlBodyElementName).First().Add(new XElement(HtmlDivElementName, new XAttribute(HtmlIdAttributeName, HtmlContentClass), 102new XElement(HtmlPElementName, new XAttribute(HtmlClassAttributeName, HtmlHeading1Class), SR2.GetString(SR2.HelpPageOperationsAt, baseUri)), 120XElement div = new XElement(HtmlDivElementName, new XAttribute(HtmlIdAttributeName, HtmlContentClass), 121new XElement(HtmlPElementName, new XAttribute(HtmlClassAttributeName, HtmlHeading1Class), SR2.GetString(SR2.HelpPageReferenceFor, BuildFullUriTemplate(baseUri, operationInfo.UriTemplate))), 144XElement div = new XElement(HtmlDivElementName, new XAttribute(HtmlIdAttributeName, HtmlContentClass), 145new XElement(HtmlPElementName, new XAttribute(HtmlClassAttributeName, HtmlHeading1Class), SR2.GetString(SR2.HelpPageTitleText))); 162XElement div = new XElement(HtmlDivElementName, new XAttribute(HtmlIdAttributeName, HtmlContentClass), 163new XElement(HtmlPElementName, new XAttribute(HtmlClassAttributeName, HtmlHeading1Class), SR2.GetString(SR2.HelpPageRequestErrorTitle))); 201XElement div = new XElement(HtmlDivElementName, new XAttribute(HtmlIdAttributeName, HtmlContentClass), 202new XElement(HtmlPElementName, new XAttribute(HtmlClassAttributeName, HtmlHeading1Class), SR2.GetString(SR2.HelpPageTitleText))); 219XElement div = new XElement(HtmlDivElementName, new XAttribute(HtmlIdAttributeName, HtmlContentClass), 220new XElement(HtmlPElementName, new XAttribute(HtmlClassAttributeName, HtmlHeading1Class), SR2.GetString(SR2.HelpPageTitleText)), 272contentTd.Add(new XElement(HtmlAElementName, new XAttribute(HtmlHrefAttributeName, "#" + (isRequest ? HtmlRequestXmlId : HtmlResponseXmlId)), SR2.GetString(SR2.HelpPageExample))); 280contentTd.Add(new XElement(HtmlAElementName, new XAttribute(HtmlHrefAttributeName, "#" + (isRequest ? HtmlRequestSchemaId : HtmlResponseSchemaId)), SR2.GetString(SR2.HelpPageSchema))); 289new XElement(HtmlAElementName, new XAttribute(HtmlHrefAttributeName, "#" + (isRequest ? HtmlRequestJsonId : HtmlResponseJsonId)), SR2.GetString(SR2.HelpPageExample))))); 361new XElement(HtmlPreElementName, new XAttribute(HtmlClassAttributeName, label), content)); 366new XElement(HtmlAElementName, new XAttribute(HtmlNameAttributeName, label), title), 367new XElement(HtmlPreElementName, new XAttribute(HtmlClassAttributeName, label), content));
System.Xml.Linq (7)
System\Xml\Linq\XLinq.cs (5)
3039e.AppendAttributeSkipNotify(new XAttribute(aCache.Get(r.Prefix.Length == 0 ? string.Empty : r.NamespaceURI).GetName(r.LocalName), r.Value)); 3113XAttribute a = new XAttribute(aCache.Get(r.Prefix.Length == 0 ? string.Empty : r.NamespaceURI).GetName(r.LocalName), r.Value); 4358AppendAttribute(new XAttribute(name, value)); 5084XAttribute a = new XAttribute(XNamespace.Get(r.Prefix.Length == 0 ? string.Empty : r.NamespaceURI).GetName(r.LocalName), r.Value); 7927XAttribute a = new XAttribute(attrName, attrValue);
System\Xml\Linq\XNodeNavigator.cs (1)
760System.Threading.Interlocked.CompareExchange(ref XmlNamespaceDeclaration, new XAttribute(XNamespace.Xmlns.GetName("xml"), XNamespace.xmlPrefixNamespace), null);
System\Xml\Linq\XNodeValidator.cs (1)
234a = new XAttribute(XNamespace.Get(sa.QualifiedName.Namespace).GetName(sa.QualifiedName.Name), GetDefaultValue(sa));
XamlBuildTask (2)
Microsoft\Build\Tasks\Xaml\GenerateTemporaryAssemblyTask.cs (2)
159XAttribute include = new XAttribute("Include", item.ItemSpec); 181newResource.Add(new XAttribute("Include", item.ItemSpec));