Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 [....]/sites/avalon/specs/xamlspec.htm // // Created: 04/28/2005 chuckj // //--------------------------------------------------------------------------- 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
- ZipIOLocalFileBlock.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- IdnMapping.cs
- CreateUserErrorEventArgs.cs
- RouteParametersHelper.cs
- AdPostCacheSubstitution.cs
- InfoCardTraceRecord.cs
- RectAnimation.cs
- NumericPagerField.cs
- InstanceData.cs
- ResourceProviderFactory.cs
- Selector.cs
- ObjectHandle.cs
- ObjectNotFoundException.cs
- pingexception.cs
- Wildcard.cs
- PtsContext.cs
- ThreadExceptionEvent.cs
- ExpressionStringBuilder.cs
- WindowsAuthenticationEventArgs.cs
- BrowserCapabilitiesCompiler.cs
- DataTableMappingCollection.cs
- DataGridHyperlinkColumn.cs
- ManagementOperationWatcher.cs
- HtmlEmptyTagControlBuilder.cs
- BindingOperations.cs
- DropShadowBitmapEffect.cs
- ReflectionHelper.cs
- MachineSettingsSection.cs
- HtmlInputControl.cs
- WebControlsSection.cs
- OleDbConnectionInternal.cs
- SelectionRange.cs
- IERequestCache.cs
- BoundColumn.cs
- XmlILAnnotation.cs
- MD5CryptoServiceProvider.cs
- RoutedEventConverter.cs
- TemplateKey.cs
- DBDataPermission.cs
- ThemeableAttribute.cs
- AnonymousIdentificationModule.cs
- ExecutionEngineException.cs
- SchemaLookupTable.cs
- EncoderExceptionFallback.cs
- CellLabel.cs
- base64Transforms.cs
- EntityType.cs
- WebEventCodes.cs
- DirtyTextRange.cs
- ServiceObjectContainer.cs
- PropertyDescriptors.cs
- AssemblyCollection.cs
- XPathDocumentIterator.cs
- DataObjectFieldAttribute.cs
- PageFunction.cs
- PhysicalAddress.cs
- DrawListViewItemEventArgs.cs
- Tablet.cs
- FontSourceCollection.cs
- UpnEndpointIdentityExtension.cs
- CodeExpressionStatement.cs
- future.cs
- CapabilitiesRule.cs
- DateTimeConverter.cs
- TableLayoutStyle.cs
- ToolboxBitmapAttribute.cs
- StringToken.cs
- SqlConnectionString.cs
- ReadContentAsBinaryHelper.cs
- SqlProviderManifest.cs
- ControlPropertyNameConverter.cs
- VersionedStreamOwner.cs
- DetailsViewUpdateEventArgs.cs
- RelationshipConverter.cs
- AliasedSlot.cs
- FacetValues.cs
- ObjectQueryProvider.cs
- DataServiceQuery.cs
- EncoderNLS.cs
- XsltContext.cs
- MsmqIntegrationInputMessage.cs
- WindowsListViewItem.cs
- WebEvents.cs
- COMException.cs
- SchemaComplexType.cs
- DataExpression.cs
- String.cs
- parserscommon.cs
- DocumentViewerAutomationPeer.cs
- FontFamilyIdentifier.cs
- EntityAdapter.cs
- CannotUnloadAppDomainException.cs
- ExpressionPrinter.cs
- VolatileResourceManager.cs
- AncestorChangedEventArgs.cs
- Input.cs
- ColorTranslator.cs
- SecurityElementBase.cs
- SqlCacheDependency.cs