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
- TimeoutValidationAttribute.cs
- CalendarData.cs
- DataGridLinkButton.cs
- RawMouseInputReport.cs
- DesignerCatalogPartChrome.cs
- DrawingContextDrawingContextWalker.cs
- GcHandle.cs
- TrackingRecord.cs
- ActivityXRefPropertyEditor.cs
- SqlBulkCopyColumnMapping.cs
- TabPage.cs
- NameValueConfigurationElement.cs
- WindowsButton.cs
- IPHostEntry.cs
- ServiceActivationException.cs
- CodeParameterDeclarationExpression.cs
- SchemaComplexType.cs
- Image.cs
- SerializationUtility.cs
- EncoderBestFitFallback.cs
- WebPartHelpVerb.cs
- ContextBase.cs
- UiaCoreApi.cs
- Int64.cs
- QilUnary.cs
- AccessViolationException.cs
- FontCollection.cs
- BuiltInExpr.cs
- CryptoApi.cs
- TemplateControl.cs
- SHA512Managed.cs
- WebZone.cs
- SqlDataSourceConfigureFilterForm.cs
- TemplateControlCodeDomTreeGenerator.cs
- BreakRecordTable.cs
- BinaryWriter.cs
- DataKey.cs
- EmptyCollection.cs
- RadioButtonList.cs
- NameTable.cs
- _SslState.cs
- TableCell.cs
- OdbcError.cs
- WebPartUserCapability.cs
- SpoolingTaskBase.cs
- WebControl.cs
- RuntimeResourceSet.cs
- WebServiceReceive.cs
- x509utils.cs
- ListParaClient.cs
- ElementUtil.cs
- XmlSchemaComplexType.cs
- TextCharacters.cs
- BitmapSizeOptions.cs
- NotFiniteNumberException.cs
- WCFBuildProvider.cs
- DtdParser.cs
- ListViewItemSelectionChangedEvent.cs
- EncoderNLS.cs
- TextTreeFixupNode.cs
- DbParameterCollectionHelper.cs
- PeerContact.cs
- ISessionStateStore.cs
- TypeSystem.cs
- MessageSecurityOverHttp.cs
- TreeNodeClickEventArgs.cs
- X509ChainPolicy.cs
- FormViewDeletedEventArgs.cs
- Trace.cs
- StringUtil.cs
- BinaryMessageFormatter.cs
- DispatcherSynchronizationContext.cs
- DropTarget.cs
- AspNetSynchronizationContext.cs
- OpenTypeLayoutCache.cs
- NewArrayExpression.cs
- BindingContext.cs
- ErrorRuntimeConfig.cs
- TabRenderer.cs
- EFColumnProvider.cs
- TypographyProperties.cs
- DispatcherOperation.cs
- AbsoluteQuery.cs
- TextRangeEditLists.cs
- ErrorFormatter.cs
- LambdaReference.cs
- UniqueConstraint.cs
- PerformanceCounterCategory.cs
- PhonemeEventArgs.cs
- ColumnResult.cs
- XmlLanguage.cs
- TransformGroup.cs
- DefaultBindingPropertyAttribute.cs
- AttributeSetAction.cs
- CachedPathData.cs
- COAUTHIDENTITY.cs
- FontEmbeddingManager.cs
- ScriptReference.cs
- SynchronizedDispatch.cs
- WmlSelectionListAdapter.cs