Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Base / System / Windows / Markup / XmlLangPropertyAttribute.cs / 1 / XmlLangPropertyAttribute.cs
//---------------------------------------------------------------------------- // // File: XmlLangPropertyAttribute.cs // // Description: // This attribute is placed on a class to identify it as the place to set // the value of the xml:lang attribute from the XML markup file. // // Example: // [XmlLangProperty("Language")] // public class ExampleFrameworkElement // // Means that when the parser sees: // //// // The parser will set the "Language" property with the value "en-US". // // // Copyright (C) by Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; namespace System.Windows.Markup { /// /// An attribute that specifies which property the xml:lang value should /// be directed to. /// [AttributeUsage(AttributeTargets.Class, AllowMultiple=false)] public sealed class XmlLangPropertyAttribute : Attribute { ////// Creates a new XmlLangPropertyAttribute with the given string /// as the property name. /// public XmlLangPropertyAttribute(string name) { _name = name; } ////// The name of the property that is designated to accept the xml:lang value /// public string Name { get { return _name; } } // The name of the property that is designated to accept the xml:lang value private string _name = null; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // // File: XmlLangPropertyAttribute.cs // // Description: // This attribute is placed on a class to identify it as the place to set // the value of the xml:lang attribute from the XML markup file. // // Example: // [XmlLangProperty("Language")] // public class ExampleFrameworkElement // // Means that when the parser sees: // //// // The parser will set the "Language" property with the value "en-US". // // // Copyright (C) by Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; namespace System.Windows.Markup { /// /// An attribute that specifies which property the xml:lang value should /// be directed to. /// [AttributeUsage(AttributeTargets.Class, AllowMultiple=false)] public sealed class XmlLangPropertyAttribute : Attribute { ////// Creates a new XmlLangPropertyAttribute with the given string /// as the property name. /// public XmlLangPropertyAttribute(string name) { _name = name; } ////// The name of the property that is designated to accept the xml:lang value /// public string Name { get { return _name; } } // The name of the property that is designated to accept the xml:lang value private string _name = null; } } // 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
- ParameterBuilder.cs
- SamlDelegatingWriter.cs
- cookie.cs
- ComplexBindingPropertiesAttribute.cs
- StyleBamlRecordReader.cs
- EdgeProfileValidation.cs
- TransactionalPackage.cs
- TextCompositionManager.cs
- GeneralTransform3DCollection.cs
- DataGridSortCommandEventArgs.cs
- StreamResourceInfo.cs
- Ref.cs
- ExpressionVisitor.cs
- XamlFrame.cs
- Opcode.cs
- ParserStreamGeometryContext.cs
- ColorConverter.cs
- DispatchChannelSink.cs
- ReferenceConverter.cs
- ItemsControl.cs
- WindowsIdentity.cs
- DiscardableAttribute.cs
- UICuesEvent.cs
- CustomPopupPlacement.cs
- ReliableChannelBinder.cs
- TrackBarRenderer.cs
- CursorConverter.cs
- DefaultIfEmptyQueryOperator.cs
- SymbolUsageManager.cs
- DbReferenceCollection.cs
- SizeFConverter.cs
- DefaultTraceListener.cs
- SiteMapHierarchicalDataSourceView.cs
- MSAAEventDispatcher.cs
- TextOptionsInternal.cs
- XmlSchemaSimpleContentExtension.cs
- ServiceDescriptionImporter.cs
- Semaphore.cs
- SafeProcessHandle.cs
- DbConnectionStringBuilder.cs
- LinqDataSourceDeleteEventArgs.cs
- FixedFlowMap.cs
- ProviderCommandInfoUtils.cs
- UIElementParagraph.cs
- EnumConverter.cs
- ZoneButton.cs
- HttpResponse.cs
- ToolStripContentPanelRenderEventArgs.cs
- FixedPageProcessor.cs
- WindowsContainer.cs
- PositiveTimeSpanValidator.cs
- BindingExpressionUncommonField.cs
- TargetException.cs
- ModifierKeysConverter.cs
- StreamWithDictionary.cs
- DependencyPropertyHelper.cs
- XmlUtf8RawTextWriter.cs
- IdnMapping.cs
- PropertyToken.cs
- TabItemAutomationPeer.cs
- BrushValueSerializer.cs
- TypeDelegator.cs
- DynamicResourceExtensionConverter.cs
- PointLight.cs
- WindowsStartMenu.cs
- AnnotationAuthorChangedEventArgs.cs
- XPathAxisIterator.cs
- SecurityDescriptor.cs
- TokenBasedSetEnumerator.cs
- ToolStripStatusLabel.cs
- Code.cs
- AspCompat.cs
- ExpressionEvaluator.cs
- DeflateStreamAsyncResult.cs
- StylusPlugInCollection.cs
- FontEmbeddingManager.cs
- DataContext.cs
- CanonicalXml.cs
- TCPListener.cs
- SchemaEntity.cs
- DecoderFallback.cs
- MenuItemAutomationPeer.cs
- MouseActionConverter.cs
- CheckedPointers.cs
- DependencyPropertyHelper.cs
- EntityDataSource.cs
- SqlNodeAnnotation.cs
- CssClassPropertyAttribute.cs
- FileLogRecordEnumerator.cs
- MultiSelector.cs
- LambdaCompiler.Address.cs
- CompositeCollectionView.cs
- ObjectNotFoundException.cs
- SqlWriter.cs
- typedescriptorpermission.cs
- SqlTriggerContext.cs
- RoleManagerModule.cs
- PasswordBoxAutomationPeer.cs
- BeginEvent.cs
- XmlDocument.cs