Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 [....]/sites/avalon/specs/xamlspec.htm // // Created: 04/28/2005 chuckj // //--------------------------------------------------------------------------- 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
- NoClickablePointException.cs
- HashAlgorithm.cs
- ButtonColumn.cs
- Page.cs
- WebRequest.cs
- RegistryKey.cs
- MouseWheelEventArgs.cs
- Annotation.cs
- XmlTextWriter.cs
- SiteMapDataSource.cs
- IgnoreDataMemberAttribute.cs
- DataGridViewCellValidatingEventArgs.cs
- WindowsTokenRoleProvider.cs
- DoubleLinkListEnumerator.cs
- StringExpressionSet.cs
- HostingEnvironmentSection.cs
- Visitors.cs
- DatatypeImplementation.cs
- Unit.cs
- TextDecorationCollection.cs
- BamlResourceSerializer.cs
- AdapterUtil.cs
- DocumentOrderComparer.cs
- ScriptingWebServicesSectionGroup.cs
- Msmq4SubqueuePoisonHandler.cs
- XmlSchemaSimpleType.cs
- XPathChildIterator.cs
- ValueType.cs
- AsyncWaitHandle.cs
- AssemblyAssociatedContentFileAttribute.cs
- ThreadInterruptedException.cs
- MsmqElementBase.cs
- FileDataSourceCache.cs
- TransportChannelListener.cs
- BitStream.cs
- DecimalConverter.cs
- FormsAuthenticationTicket.cs
- ReliabilityContractAttribute.cs
- X509Chain.cs
- SQLGuidStorage.cs
- TextSelection.cs
- DataGridBoolColumn.cs
- CheckBoxFlatAdapter.cs
- Point4DValueSerializer.cs
- PartitionerStatic.cs
- CompatibleIComparer.cs
- RemoteHelper.cs
- IsolatedStorageFilePermission.cs
- MemoryRecordBuffer.cs
- LinkUtilities.cs
- AssemblyUtil.cs
- SafeTimerHandle.cs
- WebPartCatalogAddVerb.cs
- TypedColumnHandler.cs
- InvalidComObjectException.cs
- LayoutSettings.cs
- MenuItemStyleCollection.cs
- ReflectTypeDescriptionProvider.cs
- xsdvalidator.cs
- Axis.cs
- XmlNodeChangedEventArgs.cs
- PerfCounters.cs
- StorageEndPropertyMapping.cs
- CodeGroup.cs
- TextPattern.cs
- ArgumentDirectionHelper.cs
- DispatchWrapper.cs
- TableLayoutStyleCollection.cs
- FixedSOMLineRanges.cs
- BoundField.cs
- TableCell.cs
- HttpPostClientProtocol.cs
- EntityDataSourceStatementEditor.cs
- Compensate.cs
- BoundingRectTracker.cs
- UnionCodeGroup.cs
- RoleGroup.cs
- AdjustableArrowCap.cs
- BufferedWebEventProvider.cs
- WorkflowDefinitionDispenser.cs
- SchemaTypeEmitter.cs
- TTSVoice.cs
- ComboBox.cs
- XmlSchemaDatatype.cs
- ColorMap.cs
- AlphabeticalEnumConverter.cs
- MemoryStream.cs
- DetailsViewUpdatedEventArgs.cs
- WebControlAdapter.cs
- DataTableMapping.cs
- SignedXml.cs
- CryptoApi.cs
- StronglyTypedResourceBuilder.cs
- IPipelineRuntime.cs
- ZipIOExtraFieldPaddingElement.cs
- X509CertificateClaimSet.cs
- Literal.cs
- OrthographicCamera.cs
- BooleanExpr.cs
- RemotingSurrogateSelector.cs