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
- EmbeddedMailObjectCollectionEditor.cs
- ExportException.cs
- ButtonPopupAdapter.cs
- mda.cs
- ContainerParagraph.cs
- Compiler.cs
- KeyEventArgs.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- WindowsGraphics2.cs
- CodeDOMProvider.cs
- CacheAxisQuery.cs
- System.Data_BID.cs
- NamespaceList.cs
- CodeTypeParameter.cs
- ItemCheckedEvent.cs
- DataObject.cs
- FileChangesMonitor.cs
- ButtonColumn.cs
- EntitySqlQueryState.cs
- HandleCollector.cs
- ExtractCollection.cs
- StringAttributeCollection.cs
- ProgressPage.cs
- XmlReflectionImporter.cs
- CodeIterationStatement.cs
- EdmEntityTypeAttribute.cs
- DirectoryGroupQuery.cs
- TableItemPattern.cs
- SqlConnectionString.cs
- TextEffect.cs
- Tile.cs
- DataRelationPropertyDescriptor.cs
- RepeaterCommandEventArgs.cs
- XPathItem.cs
- DataGridViewCheckBoxColumn.cs
- ModulesEntry.cs
- SystemIPInterfaceStatistics.cs
- Int16Storage.cs
- InkCanvasFeedbackAdorner.cs
- ColumnWidthChangedEvent.cs
- LogReservationCollection.cs
- FragmentNavigationEventArgs.cs
- XpsS0ValidatingLoader.cs
- RewritingValidator.cs
- AttributeXamlType.cs
- TableProvider.cs
- SqlWebEventProvider.cs
- SvcMapFileLoader.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- DynamicActivityTypeDescriptor.cs
- ObjectSpanRewriter.cs
- ItemMap.cs
- PixelFormats.cs
- DocumentApplication.cs
- DataGridColumn.cs
- XmlDataSource.cs
- TypeUsageBuilder.cs
- StrongNameUtility.cs
- ConfigViewGenerator.cs
- BookmarkUndoUnit.cs
- DisposableCollectionWrapper.cs
- SqlConnection.cs
- ComplexTypeEmitter.cs
- TerminatorSinks.cs
- XmlSchemaSequence.cs
- DrawingContextDrawingContextWalker.cs
- ParallelRangeManager.cs
- SvcMapFile.cs
- CodeTypeDeclarationCollection.cs
- QilIterator.cs
- GenerateHelper.cs
- TypeDependencyAttribute.cs
- WebDisplayNameAttribute.cs
- ToolStripDropDownButton.cs
- ParameterRefs.cs
- JournalEntry.cs
- StringCollection.cs
- DetailsViewUpdatedEventArgs.cs
- initElementDictionary.cs
- SystemTcpConnection.cs
- TypeUnloadedException.cs
- SqlInternalConnectionTds.cs
- RuntimeConfigurationRecord.cs
- SystemFonts.cs
- XmlKeywords.cs
- CallbackHandler.cs
- RadioButtonDesigner.cs
- TextServicesContext.cs
- XamlHostingSectionGroup.cs
- ObjectDataSourceChooseMethodsPanel.cs
- ListBindableAttribute.cs
- WebBrowserDocumentCompletedEventHandler.cs
- ObfuscateAssemblyAttribute.cs
- SecurityPolicySection.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- DBDataPermissionAttribute.cs
- TextParagraph.cs
- httpapplicationstate.cs
- CompiledRegexRunnerFactory.cs
- XmlFormatWriterGenerator.cs