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
- XmlText.cs
- HyperlinkAutomationPeer.cs
- CustomError.cs
- NativeMethodsOther.cs
- TextClipboardData.cs
- EntityDataSourceDesigner.cs
- EntityDesignerDataSourceView.cs
- ActivityInstanceReference.cs
- ConditionCollection.cs
- ToolStripRendererSwitcher.cs
- ScanQueryOperator.cs
- DecoderFallback.cs
- WindowsRichEditRange.cs
- AdPostCacheSubstitution.cs
- XmlObjectSerializerReadContext.cs
- MultipleViewProviderWrapper.cs
- SQLSingleStorage.cs
- XPathDocument.cs
- UserUseLicenseDictionaryLoader.cs
- TransactionManager.cs
- LinearQuaternionKeyFrame.cs
- DrawingImage.cs
- QuerySubExprEliminator.cs
- UInt32.cs
- StatusBarItemAutomationPeer.cs
- ControlPropertyNameConverter.cs
- CustomValidator.cs
- TypeElement.cs
- SpecialNameAttribute.cs
- DataListCommandEventArgs.cs
- XmlEntityReference.cs
- ProfilePropertySettings.cs
- DataPager.cs
- WindowsIdentity.cs
- Trace.cs
- ImageMapEventArgs.cs
- DataPagerFieldCollection.cs
- DataSourceControl.cs
- CompilerInfo.cs
- WebZoneDesigner.cs
- EditorPartCollection.cs
- DSASignatureDeformatter.cs
- oledbmetadatacolumnnames.cs
- ISO2022Encoding.cs
- DbTransaction.cs
- SplineQuaternionKeyFrame.cs
- ClientUrlResolverWrapper.cs
- CompositionTarget.cs
- BeginEvent.cs
- DataSourceUtil.cs
- XmlDataLoader.cs
- ClientUtils.cs
- VisualTarget.cs
- EncryptedType.cs
- SchemaElementDecl.cs
- PagesChangedEventArgs.cs
- PropertyChangedEventManager.cs
- XmlSchemaSimpleTypeUnion.cs
- OdbcInfoMessageEvent.cs
- InstancePersistenceContext.cs
- ContextStack.cs
- DesignerCommandSet.cs
- MembershipUser.cs
- GridEntry.cs
- StyleSheetComponentEditor.cs
- HtmlInputFile.cs
- EntityDataSourceWrapper.cs
- NameSpaceEvent.cs
- FrameworkContentElement.cs
- ActivityExecutorOperation.cs
- WsdlBuildProvider.cs
- COM2TypeInfoProcessor.cs
- TreeNodeStyleCollectionEditor.cs
- DynamicResourceExtension.cs
- Rect3DValueSerializer.cs
- _SecureChannel.cs
- HelpKeywordAttribute.cs
- PassportAuthentication.cs
- SqlWebEventProvider.cs
- DoubleUtil.cs
- CommonRemoteMemoryBlock.cs
- DescendantBaseQuery.cs
- WebBrowserPermission.cs
- ImageField.cs
- SerializerProvider.cs
- PixelFormat.cs
- RenderDataDrawingContext.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- DefaultConfirmation.cs
- GeometryConverter.cs
- TypeReference.cs
- LinqDataSourceUpdateEventArgs.cs
- DataGridViewCellStateChangedEventArgs.cs
- WinFormsUtils.cs
- FocusWithinProperty.cs
- XmlExceptionHelper.cs
- TextTreeNode.cs
- SequenceDesignerAccessibleObject.cs
- SQLConvert.cs
- HttpWebRequestElement.cs