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
- WorkflowServiceOperationListItem.cs
- DateTimeOffsetAdapter.cs
- SqlDependencyUtils.cs
- HtmlInputHidden.cs
- Evaluator.cs
- DataSetMappper.cs
- DiscoveryDocumentSerializer.cs
- XmlSchemaNotation.cs
- MdImport.cs
- FileDialogCustomPlacesCollection.cs
- HttpListenerPrefixCollection.cs
- FeatureSupport.cs
- COM2FontConverter.cs
- IChannel.cs
- FunctionQuery.cs
- SafeBitVector32.cs
- BamlBinaryWriter.cs
- ColumnCollection.cs
- ParserHooks.cs
- SafeLocalMemHandle.cs
- FileDialog_Vista_Interop.cs
- TextWriter.cs
- Control.cs
- ErrorTolerantObjectWriter.cs
- DataColumnChangeEvent.cs
- PageAdapter.cs
- AspNetSynchronizationContext.cs
- XmlDataSource.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- QuaternionRotation3D.cs
- DefaultWorkflowSchedulerService.cs
- Mappings.cs
- RecordBuilder.cs
- UnsafeNativeMethods.cs
- FunctionUpdateCommand.cs
- DbProviderSpecificTypePropertyAttribute.cs
- OraclePermission.cs
- DataTemplate.cs
- JapaneseLunisolarCalendar.cs
- RemoteWebConfigurationHostStream.cs
- DbConvert.cs
- SetterBase.cs
- RewritingValidator.cs
- ComPlusAuthorization.cs
- UnionCodeGroup.cs
- TypeBuilderInstantiation.cs
- StrongTypingException.cs
- WindowsListViewItemStartMenu.cs
- UpdatePanelTrigger.cs
- SiteMapNodeItemEventArgs.cs
- ChildChangedEventArgs.cs
- WindowsListViewGroupHelper.cs
- DecimalKeyFrameCollection.cs
- CqlParser.cs
- CompilationSection.cs
- AssemblyResourceLoader.cs
- precedingsibling.cs
- FrameworkContentElement.cs
- VBIdentifierTrimConverter.cs
- SoapTypeAttribute.cs
- SynchronousChannel.cs
- WindowsListViewItemStartMenu.cs
- DiscardableAttribute.cs
- WebServiceHostFactory.cs
- ListViewCancelEventArgs.cs
- DocumentPageViewAutomationPeer.cs
- Rect3D.cs
- RegionIterator.cs
- RTLAwareMessageBox.cs
- RoleManagerEventArgs.cs
- ConnectionString.cs
- ZipIOLocalFileBlock.cs
- StrokeDescriptor.cs
- CodeGenerationManager.cs
- BaseValidator.cs
- WebPartDisplayModeCollection.cs
- DesignTimeData.cs
- XmlNullResolver.cs
- TableSectionStyle.cs
- RightsManagementPermission.cs
- ImageInfo.cs
- DataGridViewCellFormattingEventArgs.cs
- MenuEventArgs.cs
- WindowsListView.cs
- HtmlAnchor.cs
- XmlNamespaceMappingCollection.cs
- MessageDecoder.cs
- FreezableDefaultValueFactory.cs
- FlowDocumentPaginator.cs
- ImageSource.cs
- DSASignatureDeformatter.cs
- AssociationType.cs
- RequestUriProcessor.cs
- DataViewListener.cs
- WebConvert.cs
- XPathBinder.cs
- TextSelectionProcessor.cs
- StringDictionary.cs
- FileDialog.cs
- UInt16Converter.cs