Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / Tools / System.Activities.Presentation / System / Activities / Presentation / View / NamespaceDisplayAutomationPeer.cs / 1305376 / NamespaceDisplayAutomationPeer.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Automation.Peers; using System.Windows; using System.Runtime.InteropServices; using System.Xml.Linq; using System.Globalization; using System.Runtime; namespace System.Activities.Presentation.View { [Fx.Tag.XamlVisible(false)] class NamespaceDisplayAutomationPeer : UIElementAutomationPeer { public NamespaceDisplayAutomationPeer(NamespaceDisplay owner) : base(owner) { } protected override string GetItemStatusCore() { NamespaceDisplay namespaceDisplay = this.Owner as NamespaceDisplay; if (namespaceDisplay != null) { XElement itemStatus = new XElement("NamespaceStatus", new XAttribute("Status", namespaceDisplay.IsInvalid ? "Invalid" : "Valid"), new XAttribute("ErrorMessage", namespaceDisplay.ErrorMessage)); return itemStatus.ToString(); } return base.GetItemStatusCore(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Automation.Peers; using System.Windows; using System.Runtime.InteropServices; using System.Xml.Linq; using System.Globalization; using System.Runtime; namespace System.Activities.Presentation.View { [Fx.Tag.XamlVisible(false)] class NamespaceDisplayAutomationPeer : UIElementAutomationPeer { public NamespaceDisplayAutomationPeer(NamespaceDisplay owner) : base(owner) { } protected override string GetItemStatusCore() { NamespaceDisplay namespaceDisplay = this.Owner as NamespaceDisplay; if (namespaceDisplay != null) { XElement itemStatus = new XElement("NamespaceStatus", new XAttribute("Status", namespaceDisplay.IsInvalid ? "Invalid" : "Valid"), new XAttribute("ErrorMessage", namespaceDisplay.ErrorMessage)); return itemStatus.ToString(); } return base.GetItemStatusCore(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IntegerValidatorAttribute.cs
- ValuePattern.cs
- ControlBuilderAttribute.cs
- AdornedElementPlaceholder.cs
- DataGridComponentEditor.cs
- XmlEnumAttribute.cs
- SecurityIdentifierConverter.cs
- AvTrace.cs
- XmlSchemas.cs
- RightsManagementErrorHandler.cs
- ThicknessAnimation.cs
- RegexCapture.cs
- DynamicMethod.cs
- HwndSubclass.cs
- HwndKeyboardInputProvider.cs
- VarInfo.cs
- BehaviorEditorPart.cs
- MouseActionValueSerializer.cs
- RegistrationServices.cs
- URLMembershipCondition.cs
- BufferedStream.cs
- MethodCallExpression.cs
- ItemCollectionEditor.cs
- DBAsyncResult.cs
- CatalogZone.cs
- ImageFormat.cs
- RectangleF.cs
- HttpCacheVaryByContentEncodings.cs
- _KerberosClient.cs
- FieldCollectionEditor.cs
- Table.cs
- UnsafeNativeMethods.cs
- LogEntrySerializationException.cs
- PropertyToken.cs
- PrintDialogDesigner.cs
- HtmlTableCellCollection.cs
- TextElementCollectionHelper.cs
- TabControlCancelEvent.cs
- TrustManager.cs
- DescendentsWalker.cs
- FontDialog.cs
- SpellerStatusTable.cs
- InternalEnumValidatorAttribute.cs
- MemberProjectedSlot.cs
- BufferedGraphics.cs
- TypeResolver.cs
- PersonalizationEntry.cs
- AssemblyNameProxy.cs
- DoubleIndependentAnimationStorage.cs
- ConsumerConnectionPoint.cs
- FlowDocumentPaginator.cs
- UrlMappingsSection.cs
- StreamUpdate.cs
- HighlightOverlayGlyph.cs
- Light.cs
- SrgsSubset.cs
- MD5CryptoServiceProvider.cs
- WindowsComboBox.cs
- XmlDomTextWriter.cs
- Wizard.cs
- QuadraticBezierSegment.cs
- TdsParserSessionPool.cs
- XMLSyntaxException.cs
- ReachVisualSerializer.cs
- ListenerConstants.cs
- DictionaryContent.cs
- InvalidOleVariantTypeException.cs
- EntitySetRetriever.cs
- CollectionEditor.cs
- GlyphRunDrawing.cs
- odbcmetadatacolumnnames.cs
- DisableDpiAwarenessAttribute.cs
- XamlReaderHelper.cs
- ConfigurationFileMap.cs
- DataGridTablesFactory.cs
- ReliableOutputSessionChannel.cs
- DynamicMetaObjectBinder.cs
- FrameworkElementFactoryMarkupObject.cs
- ConfigurationValidatorAttribute.cs
- ThreadAttributes.cs
- TableLayoutPanelResizeGlyph.cs
- SqlDeflator.cs
- SQLBytes.cs
- CodeMemberEvent.cs
- DataSourceControl.cs
- StaticContext.cs
- TransformCollection.cs
- ProcessHostMapPath.cs
- ProfilePropertySettings.cs
- HtmlLabelAdapter.cs
- QuotedPrintableStream.cs
- LinqMaximalSubtreeNominator.cs
- MediaPlayerState.cs
- UnsafeMethods.cs
- SqlCacheDependencyDatabase.cs
- Int16KeyFrameCollection.cs
- XPathDocumentIterator.cs
- BidOverLoads.cs
- Rfc4050KeyFormatter.cs
- XDeferredAxisSource.cs