Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- DataSourceIDConverter.cs
- TargetInvocationException.cs
- SingleConverter.cs
- EncoderFallback.cs
- ExclusiveTcpListener.cs
- ReadingWritingEntityEventArgs.cs
- StylusPointPropertyId.cs
- CodeMethodMap.cs
- SafeNativeMethodsCLR.cs
- NotifyParentPropertyAttribute.cs
- BaseTemplateCodeDomTreeGenerator.cs
- Message.cs
- HwndTarget.cs
- Rotation3DAnimationBase.cs
- Error.cs
- QilPatternVisitor.cs
- DataControlButton.cs
- Figure.cs
- DesigntimeLicenseContext.cs
- URIFormatException.cs
- SqlConnectionPoolGroupProviderInfo.cs
- FirstQueryOperator.cs
- SkewTransform.cs
- Stroke2.cs
- OleDbPermission.cs
- DefaultMemberAttribute.cs
- PublishLicense.cs
- ComplexTypeEmitter.cs
- ContractListAdapter.cs
- ValidatorCompatibilityHelper.cs
- PerfService.cs
- RemoteArgument.cs
- DataComponentGenerator.cs
- Compiler.cs
- MenuBase.cs
- TranslateTransform.cs
- AssemblyResourceLoader.cs
- Panel.cs
- FormsAuthenticationModule.cs
- BindingListCollectionView.cs
- ASCIIEncoding.cs
- MD5.cs
- BinaryObjectInfo.cs
- TextRunTypographyProperties.cs
- SqlRowUpdatedEvent.cs
- Size.cs
- ObjectMaterializedEventArgs.cs
- RuleInfoComparer.cs
- CodeNamespaceCollection.cs
- ExpressionPrinter.cs
- ShaderRenderModeValidation.cs
- Control.cs
- Serializer.cs
- MergeLocalizationDirectives.cs
- SelectedCellsChangedEventArgs.cs
- RevocationPoint.cs
- DesignOnlyAttribute.cs
- Bits.cs
- XmlStringTable.cs
- Accessible.cs
- HebrewNumber.cs
- RequestQueue.cs
- ExceptionWrapper.cs
- Quaternion.cs
- AppSettingsExpressionBuilder.cs
- CultureTable.cs
- BoundColumn.cs
- Listen.cs
- FullTextState.cs
- HyperLinkColumn.cs
- DataControlButton.cs
- Vector.cs
- PathParser.cs
- ResourceDisplayNameAttribute.cs
- Parser.cs
- AvTrace.cs
- DesignerRegionMouseEventArgs.cs
- SRGSCompiler.cs
- RemotingAttributes.cs
- Merger.cs
- DesignerDataTableBase.cs
- BitmapPalettes.cs
- Receive.cs
- DataBoundControlHelper.cs
- TextRangeSerialization.cs
- SafeSystemMetrics.cs
- DataViewManager.cs
- DataServiceRequest.cs
- Int32.cs
- StylusEditingBehavior.cs
- TimelineCollection.cs
- ListViewSortEventArgs.cs
- FormViewModeEventArgs.cs
- Propagator.ExtentPlaceholderCreator.cs
- sqlpipe.cs
- TokenBasedSet.cs
- Int64AnimationUsingKeyFrames.cs
- LayoutDump.cs
- __Filters.cs
- ShapeTypeface.cs