Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- FontCollection.cs
- ContextMenu.cs
- KeyTime.cs
- DataFormat.cs
- BaseTreeIterator.cs
- GC.cs
- CommandHelpers.cs
- _NegoState.cs
- AsyncOperation.cs
- XmlLanguageConverter.cs
- StyleCollectionEditor.cs
- FixedMaxHeap.cs
- StatusCommandUI.cs
- TrackingMemoryStream.cs
- BitmapDownload.cs
- GridViewCellAutomationPeer.cs
- ResourceManager.cs
- Geometry3D.cs
- CompilerParameters.cs
- SettingsBase.cs
- TransformerInfo.cs
- VectorAnimationUsingKeyFrames.cs
- EtwTrackingBehaviorElement.cs
- SchemaDeclBase.cs
- RoutingUtilities.cs
- FileUpload.cs
- IgnoreSectionHandler.cs
- TextSelectionHelper.cs
- TableLayoutRowStyleCollection.cs
- SqlProvider.cs
- SemanticValue.cs
- DoubleAnimation.cs
- ParserStack.cs
- BindingCompleteEventArgs.cs
- MenuAdapter.cs
- DiscoveryServerProtocol.cs
- SQLMoneyStorage.cs
- SQLDateTime.cs
- KeySplineConverter.cs
- HelloMessageApril2005.cs
- EntityClassGenerator.cs
- FileChangeNotifier.cs
- QueryStringHandler.cs
- HttpServerVarsCollection.cs
- hresults.cs
- HuffmanTree.cs
- XmlILAnnotation.cs
- TrackingExtract.cs
- OleDragDropHandler.cs
- NativeMethods.cs
- InvalidDocumentContentsException.cs
- ActivityBuilderHelper.cs
- ActivationServices.cs
- ServiceModelStringsVersion1.cs
- InstanceData.cs
- BypassElementCollection.cs
- ProxyWebPartConnectionCollection.cs
- PropertyTabChangedEvent.cs
- DomNameTable.cs
- DivideByZeroException.cs
- RelationshipEnd.cs
- Configuration.cs
- RolePrincipal.cs
- DateTimeOffset.cs
- ServiceModelSecurityTokenTypes.cs
- WebServiceErrorEvent.cs
- ConfigurationFileMap.cs
- MenuItemAutomationPeer.cs
- Size.cs
- CroppedBitmap.cs
- MetadataUtil.cs
- SoapAttributeOverrides.cs
- SaveCardRequest.cs
- TreeViewDataItemAutomationPeer.cs
- SqlDataSourceCustomCommandEditor.cs
- ItemCollection.cs
- DebugTraceHelper.cs
- StrokeNodeOperations.cs
- ResponseBodyWriter.cs
- ResumeStoryboard.cs
- XamlToRtfWriter.cs
- followingsibling.cs
- SerializationAttributes.cs
- LabelAutomationPeer.cs
- UidManager.cs
- EpmContentSerializer.cs
- RegularExpressionValidator.cs
- StrokeNodeData.cs
- GridViewItemAutomationPeer.cs
- ApplicationFileCodeDomTreeGenerator.cs
- XmlDataImplementation.cs
- XmlAtomicValue.cs
- ZipIOModeEnforcingStream.cs
- ContextBase.cs
- MenuItem.cs
- PersonalizationProvider.cs
- HttpMethodConstraint.cs
- CharEnumerator.cs
- TraceContextRecord.cs
- CatalogPartCollection.cs