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
- CreateUserWizard.cs
- WebColorConverter.cs
- MemberDescriptor.cs
- ScrollBar.cs
- XmlValueConverter.cs
- ToolStripPanelRow.cs
- TextOptions.cs
- ExpressionPrefixAttribute.cs
- ExceptionUtil.cs
- ITextView.cs
- AvtEvent.cs
- XmlUtilWriter.cs
- CodeSnippetTypeMember.cs
- QueryCacheKey.cs
- HelpPage.cs
- TextEditorLists.cs
- TailCallAnalyzer.cs
- NTAccount.cs
- RepeaterItemCollection.cs
- TimeoutValidationAttribute.cs
- RtfControls.cs
- DockProviderWrapper.cs
- SettingsAttributeDictionary.cs
- SchemaSetCompiler.cs
- XmlSchemaGroupRef.cs
- dbdatarecord.cs
- ColumnMapProcessor.cs
- PreviewPageInfo.cs
- DataServiceClientException.cs
- RoleGroup.cs
- DataService.cs
- Matrix3D.cs
- XmlNavigatorStack.cs
- COM2Properties.cs
- ByteStack.cs
- TargetConverter.cs
- OracleFactory.cs
- ComponentCommands.cs
- EventArgs.cs
- AuthenticationService.cs
- XsltSettings.cs
- ValueUtilsSmi.cs
- Missing.cs
- TransformedBitmap.cs
- HuffCodec.cs
- RuleInfoComparer.cs
- dataprotectionpermissionattribute.cs
- RegisteredArrayDeclaration.cs
- UrlUtility.cs
- TabletCollection.cs
- messageonlyhwndwrapper.cs
- RealProxy.cs
- LineProperties.cs
- CryptoKeySecurity.cs
- ObjectDataSourceFilteringEventArgs.cs
- HttpHandlersSection.cs
- UrlPropertyAttribute.cs
- _Win32.cs
- StrongName.cs
- FamilyMap.cs
- DispatcherTimer.cs
- CommonDialog.cs
- TypeToken.cs
- ManagementPath.cs
- XslNumber.cs
- BitHelper.cs
- LayoutEvent.cs
- CancelEventArgs.cs
- SectionVisual.cs
- DocumentGridContextMenu.cs
- SQLSingle.cs
- DataServiceRequest.cs
- FixedPosition.cs
- CodeTryCatchFinallyStatement.cs
- TrackBar.cs
- DesignerContextDescriptor.cs
- TemplatePropertyEntry.cs
- EventBuilder.cs
- FormViewInsertedEventArgs.cs
- regiisutil.cs
- BulletedList.cs
- Border.cs
- WindowsRichEdit.cs
- ConversionContext.cs
- unitconverter.cs
- ServiceObjectContainer.cs
- QuaternionValueSerializer.cs
- IndentedWriter.cs
- SHA256Managed.cs
- HttpProfileBase.cs
- ExceptionHelpers.cs
- DataTemplateSelector.cs
- ClassHandlersStore.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- _UncName.cs
- InkCollectionBehavior.cs
- InterleavedZipPartStream.cs
- ProtocolViolationException.cs
- CommonProperties.cs
- ObjectDataSourceView.cs