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
- UidPropertyAttribute.cs
- HtmlInputPassword.cs
- DbDataRecord.cs
- ToolStripSplitStackLayout.cs
- ReliabilityContractAttribute.cs
- RedirectionProxy.cs
- BindingOperations.cs
- FlowDocument.cs
- DataSourceListEditor.cs
- EdmProperty.cs
- BrowserTree.cs
- ProcessModule.cs
- XmlDataSourceNodeDescriptor.cs
- Merger.cs
- StreamGeometry.cs
- DropDownButton.cs
- DateTimeParse.cs
- SimpleHandlerBuildProvider.cs
- SubtreeProcessor.cs
- MaskedTextBox.cs
- PrePostDescendentsWalker.cs
- KeyMatchBuilder.cs
- SymbolEqualComparer.cs
- ScriptControlDescriptor.cs
- SoapMessage.cs
- webbrowsersite.cs
- BasicKeyConstraint.cs
- ArglessEventHandlerProxy.cs
- ASCIIEncoding.cs
- XmlSchemaComplexContentExtension.cs
- AccessText.cs
- SafeMILHandle.cs
- MDIClient.cs
- AutomationPropertyInfo.cs
- BindingNavigator.cs
- SignerInfo.cs
- XMLUtil.cs
- _ChunkParse.cs
- ToolStripContentPanelRenderEventArgs.cs
- CompiledQuery.cs
- SqlNotificationRequest.cs
- GridViewUpdateEventArgs.cs
- DataServiceQueryException.cs
- HtmlContainerControl.cs
- NavigatorInput.cs
- DetailsViewDeleteEventArgs.cs
- ErrorLog.cs
- DependencySource.cs
- WorkflowPageSetupDialog.cs
- WindowsNonControl.cs
- AppDomainFactory.cs
- XsltOutput.cs
- LineServicesRun.cs
- EventMetadata.cs
- OleDbCommand.cs
- OperationPickerDialog.designer.cs
- ListItemCollection.cs
- ReadingWritingEntityEventArgs.cs
- Math.cs
- ObjectHandle.cs
- TypeExtension.cs
- Freezable.cs
- ToolStripComboBox.cs
- UndoManager.cs
- TextEffect.cs
- ObjectListItem.cs
- CharacterShapingProperties.cs
- PersonalizationDictionary.cs
- VirtualPathProvider.cs
- LoadRetryHandler.cs
- PointHitTestResult.cs
- OleStrCAMarshaler.cs
- XmlSchemaParticle.cs
- ControlPropertyNameConverter.cs
- OneWayBindingElement.cs
- StrokeNodeEnumerator.cs
- TemplateBindingExpressionConverter.cs
- VarInfo.cs
- ObjectTokenCategory.cs
- TriState.cs
- ViewManagerAttribute.cs
- FormsAuthenticationUser.cs
- TemplateBaseAction.cs
- XmlAtomicValue.cs
- DbProviderFactories.cs
- RootCodeDomSerializer.cs
- XmlUTF8TextReader.cs
- CssTextWriter.cs
- SystemResourceKey.cs
- SqlMethods.cs
- TemplateControlCodeDomTreeGenerator.cs
- GeneralTransform3DGroup.cs
- XomlCompilerParameters.cs
- DataSourceGroupCollection.cs
- contentDescriptor.cs
- PublisherIdentityPermission.cs
- DataRow.cs
- TreeNode.cs
- NativeMethods.cs
- VariantWrapper.cs