Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ServiceModelEnumValidatorAttribute.cs
- ContentElementAutomationPeer.cs
- BindingNavigator.cs
- WebControlsSection.cs
- EncodingNLS.cs
- Ray3DHitTestResult.cs
- DataGridViewComboBoxCell.cs
- ContextQuery.cs
- RowCache.cs
- ReplacementText.cs
- DataGridTextBoxColumn.cs
- ObjectDataSourceWizardForm.cs
- HttpBrowserCapabilitiesBase.cs
- ClickablePoint.cs
- UnionExpr.cs
- TextTreeNode.cs
- securitycriticaldataformultiplegetandset.cs
- SHA384.cs
- XmlSchemaAppInfo.cs
- ByteStorage.cs
- DSACryptoServiceProvider.cs
- OdbcStatementHandle.cs
- DataFieldConverter.cs
- SymLanguageVendor.cs
- RangeBase.cs
- UniformGrid.cs
- FormatVersion.cs
- CLSCompliantAttribute.cs
- DictionaryEntry.cs
- DebugController.cs
- ServiceModelConfigurationSectionCollection.cs
- DataGridItemAttachedStorage.cs
- InternalConfigConfigurationFactory.cs
- ProviderBase.cs
- CheckBox.cs
- GroupDescription.cs
- BindingBase.cs
- OLEDB_Util.cs
- DesignTimeParseData.cs
- BitmapEffectGroup.cs
- ColumnWidthChangedEvent.cs
- SessionStateModule.cs
- SiteMembershipCondition.cs
- SiteMapHierarchicalDataSourceView.cs
- SafeCertificateContext.cs
- BrowsableAttribute.cs
- FixedFindEngine.cs
- PolyBezierSegment.cs
- InteropBitmapSource.cs
- MenuAutomationPeer.cs
- MachineKeyConverter.cs
- WebPartConnectionsCancelVerb.cs
- FieldNameLookup.cs
- LeftCellWrapper.cs
- TypeUsageBuilder.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- CustomAttributeBuilder.cs
- XPathScanner.cs
- RowBinding.cs
- BindingValueChangedEventArgs.cs
- WpfXamlMember.cs
- HideDisabledControlAdapter.cs
- ControllableStoryboardAction.cs
- WebPartCollection.cs
- XamlSerializerUtil.cs
- TextEvent.cs
- DateTimeValueSerializerContext.cs
- BigInt.cs
- SignatureDescription.cs
- DataReceivedEventArgs.cs
- ConfigurationValue.cs
- Cursor.cs
- SyntaxCheck.cs
- ProcessDesigner.cs
- typedescriptorpermissionattribute.cs
- RawStylusInput.cs
- InOutArgument.cs
- Debug.cs
- CompressStream.cs
- DataGridRow.cs
- ObjectIDGenerator.cs
- AmbientValueAttribute.cs
- Membership.cs
- TraceContextEventArgs.cs
- RoutedEventValueSerializer.cs
- Stack.cs
- NamespaceQuery.cs
- ResourceExpressionBuilder.cs
- WebConfigurationHost.cs
- FrameworkContentElement.cs
- DataServiceProcessingPipelineEventArgs.cs
- ListDictionaryInternal.cs
- ToolStripContentPanelRenderEventArgs.cs
- StringCollection.cs
- RepeaterItem.cs
- FreezableCollection.cs
- AsyncResult.cs
- TdsParserSessionPool.cs
- TemplateParser.cs
- DataBinding.cs