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
- ResourceType.cs
- ChildTable.cs
- SendMailErrorEventArgs.cs
- util.cs
- BufferAllocator.cs
- DataServiceHost.cs
- EncoderExceptionFallback.cs
- EmulateRecognizeCompletedEventArgs.cs
- wgx_render.cs
- OracleParameterCollection.cs
- CookieParameter.cs
- TimeManager.cs
- ConvertersCollection.cs
- WindowsSecurityTokenAuthenticator.cs
- TemplateControlParser.cs
- SrgsNameValueTag.cs
- Transform3D.cs
- ExceptionUtil.cs
- ComponentSerializationService.cs
- Int64.cs
- ListParagraph.cs
- RoleManagerModule.cs
- XhtmlBasicObjectListAdapter.cs
- TrackBarRenderer.cs
- _ConnectStream.cs
- ResourcesChangeInfo.cs
- PinnedBufferMemoryStream.cs
- CustomPopupPlacement.cs
- RoleGroup.cs
- SoapAttributeOverrides.cs
- DrawListViewColumnHeaderEventArgs.cs
- WebUtil.cs
- AccessText.cs
- ClientSettingsSection.cs
- LassoSelectionBehavior.cs
- BitmapPalette.cs
- ContractMapping.cs
- TriggerAction.cs
- ArgIterator.cs
- XamlUtilities.cs
- RegexStringValidator.cs
- PropertyChangedEventManager.cs
- ExtendedProtectionPolicyTypeConverter.cs
- TypeElement.cs
- SiteMapNodeItem.cs
- VarRemapper.cs
- ProfileBuildProvider.cs
- TransformerConfigurationWizardBase.cs
- MultilineStringConverter.cs
- DeobfuscatingStream.cs
- ZipIOLocalFileDataDescriptor.cs
- GridToolTip.cs
- FixedDocument.cs
- dataprotectionpermissionattribute.cs
- LogRestartAreaEnumerator.cs
- MatrixValueSerializer.cs
- DependencyPropertyKey.cs
- Evaluator.cs
- DbParameterCollectionHelper.cs
- CqlErrorHelper.cs
- SQLBytes.cs
- TextAnchor.cs
- EntityCommand.cs
- IntSecurity.cs
- ConnectionPointCookie.cs
- WebServiceResponse.cs
- TypeSystemProvider.cs
- GroupPartitionExpr.cs
- SqlInternalConnection.cs
- ValidatingReaderNodeData.cs
- ConfigsHelper.cs
- SqlCacheDependency.cs
- ImageField.cs
- XmlSchemaNotation.cs
- Root.cs
- ExternalDataExchangeClient.cs
- HostProtectionPermission.cs
- NestPullup.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- SegmentInfo.cs
- Image.cs
- AssemblyHash.cs
- DocumentApplicationJournalEntry.cs
- InternalTypeHelper.cs
- DataServiceHostFactory.cs
- LayoutEditorPart.cs
- ObjectCacheHost.cs
- PeerCollaborationPermission.cs
- DesignerActionUI.cs
- ServiceModelExtensionCollectionElement.cs
- SiteMapNode.cs
- StyleModeStack.cs
- ModelService.cs
- __Error.cs
- StructuredProperty.cs
- DataGridColumnCollection.cs
- TimelineClockCollection.cs
- Help.cs
- DependencyObjectPropertyDescriptor.cs
- TextBoxDesigner.cs