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
- CLSCompliantAttribute.cs
- X509CertificateChain.cs
- DataGridViewCellValidatingEventArgs.cs
- DataSourceControl.cs
- VirtualizedContainerService.cs
- MemberHolder.cs
- BitSet.cs
- SqlParameterCollection.cs
- InternalRelationshipCollection.cs
- CommentEmitter.cs
- StylusPlugInCollection.cs
- ModelFunction.cs
- TreeSet.cs
- CryptoApi.cs
- EllipseGeometry.cs
- DeclarativeCatalogPartDesigner.cs
- PromptBuilder.cs
- GuidelineCollection.cs
- sqlpipe.cs
- DocumentationServerProtocol.cs
- EntryWrittenEventArgs.cs
- TaskFileService.cs
- OdbcPermission.cs
- ScaleTransform3D.cs
- _ProxyRegBlob.cs
- ChtmlTextWriter.cs
- Package.cs
- AnnotationComponentChooser.cs
- XmlCharCheckingReader.cs
- CodeConditionStatement.cs
- ObjectParameterCollection.cs
- NativeCppClassAttribute.cs
- GroupStyle.cs
- SerializationInfo.cs
- BlurBitmapEffect.cs
- DriveNotFoundException.cs
- FamilyMapCollection.cs
- InlineUIContainer.cs
- NameObjectCollectionBase.cs
- ObjectListCommandEventArgs.cs
- PerformanceCounterPermissionAttribute.cs
- XPathNodeList.cs
- ElementAction.cs
- WebPartTracker.cs
- Int16AnimationBase.cs
- EmptyEnumerable.cs
- CheckPair.cs
- ObjectContextServiceProvider.cs
- OleAutBinder.cs
- TableRow.cs
- EntityCommandExecutionException.cs
- StreamProxy.cs
- AddIn.cs
- TabPage.cs
- TextPointerBase.cs
- BaseTemplateBuildProvider.cs
- ContextMenu.cs
- MessageQueueTransaction.cs
- PathFigureCollectionConverter.cs
- OperationPickerDialog.cs
- SerialErrors.cs
- GridViewRowCollection.cs
- AvtEvent.cs
- SafeFileMappingHandle.cs
- XmlArrayAttribute.cs
- SynchronizationHandlesCodeDomSerializer.cs
- SelectionRangeConverter.cs
- MonthCalendar.cs
- BaseCodePageEncoding.cs
- XmlDataFileEditor.cs
- HMACSHA256.cs
- elementinformation.cs
- InputReport.cs
- ContainerUIElement3D.cs
- HtmlInputImage.cs
- EnumerableRowCollectionExtensions.cs
- LocatorManager.cs
- RadialGradientBrush.cs
- NotifyParentPropertyAttribute.cs
- Dispatcher.cs
- JulianCalendar.cs
- FileLogRecord.cs
- ImageAttributes.cs
- StorageInfo.cs
- ParagraphResult.cs
- odbcmetadatacollectionnames.cs
- NonSerializedAttribute.cs
- WmfPlaceableFileHeader.cs
- MessageSecurityOverTcpElement.cs
- XmlMapping.cs
- BoolExpression.cs
- jithelpers.cs
- TransactionChannelFaultConverter.cs
- CodeGenerationManager.cs
- WaitHandleCannotBeOpenedException.cs
- Dispatcher.cs
- ProcessHostConfigUtils.cs
- WorkflowElementDialogWindow.xaml.cs
- DbConnectionPoolGroupProviderInfo.cs
- MimeImporter.cs