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
- Size3D.cs
- dbenumerator.cs
- RichTextBoxAutomationPeer.cs
- IteratorDescriptor.cs
- ManagedIStream.cs
- ZipIOLocalFileHeader.cs
- ZipFileInfo.cs
- LinearKeyFrames.cs
- Propagator.cs
- WebBaseEventKeyComparer.cs
- MergeLocalizationDirectives.cs
- CodeDOMProvider.cs
- CounterCreationDataCollection.cs
- UshortList2.cs
- WinOEToolBoxItem.cs
- HttpApplicationStateWrapper.cs
- AdPostCacheSubstitution.cs
- ListMarkerLine.cs
- X509RecipientCertificateClientElement.cs
- Int32CAMarshaler.cs
- SystemTcpConnection.cs
- BamlWriter.cs
- ParagraphVisual.cs
- TextServicesCompartment.cs
- DataServiceQueryOfT.cs
- HelpProvider.cs
- LocatorPartList.cs
- RectangleHotSpot.cs
- InkCanvasFeedbackAdorner.cs
- DataControlFieldHeaderCell.cs
- DataGridComboBoxColumn.cs
- WindowsScroll.cs
- StreamWithDictionary.cs
- NamespaceDisplay.xaml.cs
- PageEventArgs.cs
- ByteStreamMessage.cs
- Viewport2DVisual3D.cs
- BamlTreeMap.cs
- LocalizabilityAttribute.cs
- PropertyToken.cs
- TabControlAutomationPeer.cs
- WindowsFormsHostPropertyMap.cs
- TextElementEnumerator.cs
- AssemblyBuilder.cs
- ImageInfo.cs
- KeyedCollection.cs
- Base64Stream.cs
- CodeMemberField.cs
- SevenBitStream.cs
- TextEditorSelection.cs
- Pkcs9Attribute.cs
- IndexerNameAttribute.cs
- ITreeGenerator.cs
- AutoGeneratedField.cs
- RouteValueExpressionBuilder.cs
- OutputCacheProfile.cs
- InfoCardCryptoHelper.cs
- GorillaCodec.cs
- DetailsViewInsertEventArgs.cs
- BaseAsyncResult.cs
- ProjectedWrapper.cs
- FillRuleValidation.cs
- StylesEditorDialog.cs
- HybridObjectCache.cs
- WindowsStatusBar.cs
- PrimitiveCodeDomSerializer.cs
- CharUnicodeInfo.cs
- SecurityHelper.cs
- WindowsTreeView.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- TextFormatterContext.cs
- Number.cs
- DataTrigger.cs
- DBSchemaTable.cs
- ManagementPath.cs
- RepeatBehavior.cs
- MILUtilities.cs
- WebPartTransformer.cs
- ExpressionBinding.cs
- DelegateTypeInfo.cs
- TextPattern.cs
- TextRenderer.cs
- Condition.cs
- CmsUtils.cs
- EventLog.cs
- XmlAtomicValue.cs
- Compensate.cs
- RangeValuePatternIdentifiers.cs
- DbMetaDataColumnNames.cs
- RefreshEventArgs.cs
- WebEventTraceProvider.cs
- bindurihelper.cs
- CryptoProvider.cs
- DrawingDrawingContext.cs
- UserControlParser.cs
- CommonXSendMessage.cs
- ProxyWebPartManager.cs
- AlignmentXValidation.cs
- SelectionPatternIdentifiers.cs
- MobileResource.cs