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
- Metafile.cs
- DataGridViewAutoSizeModeEventArgs.cs
- DataGridAddNewRow.cs
- BamlRecordHelper.cs
- AsyncInvokeContext.cs
- DocumentDesigner.cs
- SubpageParagraph.cs
- CalendarDateRangeChangingEventArgs.cs
- SoapTypeAttribute.cs
- RegexWorker.cs
- printdlgexmarshaler.cs
- FontUnit.cs
- StructuredTypeInfo.cs
- CompositeFontInfo.cs
- ListBoxItemAutomationPeer.cs
- TextRenderer.cs
- WindowsListViewScroll.cs
- DocumentOrderComparer.cs
- MergeFailedEvent.cs
- ObjectViewEntityCollectionData.cs
- EntitySqlQueryState.cs
- ProxyWebPart.cs
- DirectionalLight.cs
- _NegoState.cs
- NamedElement.cs
- WebPartConnection.cs
- activationcontext.cs
- KeyTimeConverter.cs
- NativeCompoundFileAPIs.cs
- EFColumnProvider.cs
- SortExpressionBuilder.cs
- HiddenField.cs
- ConnectionPoint.cs
- WinFormsSpinner.cs
- BadImageFormatException.cs
- ExponentialEase.cs
- XmlMtomReader.cs
- COM2ComponentEditor.cs
- DescriptionAttribute.cs
- XsltArgumentList.cs
- ValidationErrorCollection.cs
- LinkDescriptor.cs
- TiffBitmapDecoder.cs
- LineGeometry.cs
- ProcessInfo.cs
- ActivityMetadata.cs
- DbConnectionPoolGroup.cs
- Int64AnimationUsingKeyFrames.cs
- DataContractSerializerOperationBehavior.cs
- ZipFileInfo.cs
- XmlTypeAttribute.cs
- ReturnType.cs
- UnsafeNativeMethods.cs
- backend.cs
- dbdatarecord.cs
- ObjectSet.cs
- FrameDimension.cs
- TableDetailsRow.cs
- DEREncoding.cs
- HtmlImage.cs
- SafeNativeMethods.cs
- CodeThrowExceptionStatement.cs
- TableLayoutSettings.cs
- BitmapEffect.cs
- RotateTransform.cs
- XmlNamespaceMappingCollection.cs
- XmlDataSourceView.cs
- TemplateBindingExtension.cs
- SR.cs
- SymmetricSecurityBindingElement.cs
- ResourceKey.cs
- ExtensionQuery.cs
- VerificationException.cs
- WebPartConnectionCollection.cs
- IgnoreDeviceFilterElement.cs
- CalendarDateChangedEventArgs.cs
- SafeRightsManagementHandle.cs
- UserNameSecurityToken.cs
- DependencyObjectCodeDomSerializer.cs
- ServicePointManager.cs
- ClipboardData.cs
- SqlSelectClauseBuilder.cs
- DataGridSortCommandEventArgs.cs
- SimpleWorkerRequest.cs
- Size.cs
- AlternationConverter.cs
- PlaceHolder.cs
- AnnouncementEndpointElement.cs
- FormViewUpdatedEventArgs.cs
- COM2FontConverter.cs
- SqlTypesSchemaImporter.cs
- DataViewManagerListItemTypeDescriptor.cs
- WebServicesDescriptionAttribute.cs
- ControlTemplate.cs
- SqlUserDefinedAggregateAttribute.cs
- Base64Stream.cs
- WebPartZoneBaseDesigner.cs
- RegisteredScript.cs
- WriteableBitmap.cs
- DataListItemEventArgs.cs