Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Base / System / Windows / Markup / ContentPropertyAttribute.cs / 1 / ContentPropertyAttribute.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2005 // // File: ContentPropertyAttribute.cs // // Description: Specifies which property of a class should be written as the // direct content of the class when written to XAML. // Spec at http://team/sites/avalon/specs/xamlspec.htm // // Created: 04/28/2005 [....] // //--------------------------------------------------------------------------- using System; namespace System.Windows.Markup { ////// An attribute that specifies which property the direct content of a XAML /// element should be associated with. /// [AttributeUsage(AttributeTargets.Class, AllowMultiple=false, Inherited=true)] public sealed class ContentPropertyAttribute : Attribute { ////// Creates a new content property attriubte that indicates that associated /// class does not have a content property attribute. This allows a descendent /// remove an ancestors declaration of a content property attribute. /// public ContentPropertyAttribute() { } ////// Creates a new content property attribute that associates the direct content /// of XAML content with property of the given name /// /// The property to associate to direct XAML content public ContentPropertyAttribute(string name) { _name = name; } ////// The name of the property that is associated with direct XAML content /// public string Name { get { return _name; } } private string _name; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2005 // // File: ContentPropertyAttribute.cs // // Description: Specifies which property of a class should be written as the // direct content of the class when written to XAML. // Spec at http://team/sites/avalon/specs/xamlspec.htm // // Created: 04/28/2005 [....] // //--------------------------------------------------------------------------- using System; namespace System.Windows.Markup { ////// An attribute that specifies which property the direct content of a XAML /// element should be associated with. /// [AttributeUsage(AttributeTargets.Class, AllowMultiple=false, Inherited=true)] public sealed class ContentPropertyAttribute : Attribute { ////// Creates a new content property attriubte that indicates that associated /// class does not have a content property attribute. This allows a descendent /// remove an ancestors declaration of a content property attribute. /// public ContentPropertyAttribute() { } ////// Creates a new content property attribute that associates the direct content /// of XAML content with property of the given name /// /// The property to associate to direct XAML content public ContentPropertyAttribute(string name) { _name = name; } ////// The name of the property that is associated with direct XAML content /// public string Name { get { return _name; } } private string _name; } } // 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
- PreviewPageInfo.cs
- CodeTypeParameter.cs
- WebBrowserNavigatedEventHandler.cs
- HelpProvider.cs
- StaticSiteMapProvider.cs
- WindowsAuthenticationEventArgs.cs
- InputScopeConverter.cs
- ListChangedEventArgs.cs
- ObjectSpanRewriter.cs
- UInt16Converter.cs
- EmitterCache.cs
- CompositeDataBoundControl.cs
- ComponentChangingEvent.cs
- SecurityUtils.cs
- BlurEffect.cs
- ColorPalette.cs
- AlternateView.cs
- SqlParameterCollection.cs
- ContractNamespaceAttribute.cs
- EntityDataSourceWizardForm.cs
- XmlLinkedNode.cs
- ConfigurationManagerInternal.cs
- Span.cs
- SeekStoryboard.cs
- UnsafePeerToPeerMethods.cs
- SafeNativeMethodsOther.cs
- MembershipUser.cs
- EmbossBitmapEffect.cs
- SchemaImporter.cs
- SimpleBitVector32.cs
- BorderGapMaskConverter.cs
- Renderer.cs
- CSharpCodeProvider.cs
- LinkedResourceCollection.cs
- IgnoreFlushAndCloseStream.cs
- StatusBar.cs
- RelationshipEndMember.cs
- TrackingMemoryStreamFactory.cs
- TypeToken.cs
- ServiceModelSectionGroup.cs
- ReflectionHelper.cs
- NameGenerator.cs
- ClientTargetSection.cs
- IDictionary.cs
- SaveFileDialog.cs
- WeakReferenceEnumerator.cs
- ColorKeyFrameCollection.cs
- ConfigurationConverterBase.cs
- SoapMessage.cs
- ProcessModelSection.cs
- InstanceKey.cs
- BoolExpressionVisitors.cs
- OpCellTreeNode.cs
- DefaultValueConverter.cs
- PassportPrincipal.cs
- HtmlFormWrapper.cs
- DocumentViewer.cs
- MD5HashHelper.cs
- WebPartsPersonalization.cs
- LinqDataSourceSelectEventArgs.cs
- JsonFormatWriterGenerator.cs
- TransactionTable.cs
- Descriptor.cs
- AutomationPropertyInfo.cs
- SmiConnection.cs
- ValueCollectionParameterReader.cs
- InstanceValue.cs
- RequestCache.cs
- NavigateEvent.cs
- ValidationError.cs
- XmlSubtreeReader.cs
- CancelEventArgs.cs
- Bezier.cs
- OutputCacheModule.cs
- TypedLocationWrapper.cs
- MetadataArtifactLoader.cs
- MultipleViewPatternIdentifiers.cs
- RuleInfoComparer.cs
- Preprocessor.cs
- DeviceContext.cs
- MenuCommand.cs
- EmptyCollection.cs
- WindowsRichEdit.cs
- XmlAutoDetectWriter.cs
- Matrix3DConverter.cs
- SamlDelegatingWriter.cs
- Module.cs
- ValueQuery.cs
- WinInetCache.cs
- OutputScopeManager.cs
- RandomNumberGenerator.cs
- ProtocolsConfiguration.cs
- SchemaNotation.cs
- CompilerGeneratedAttribute.cs
- ServiceDebugElement.cs
- MultipartIdentifier.cs
- MultipartIdentifier.cs
- ThreadInterruptedException.cs
- HttpException.cs
- safex509handles.cs