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
- Vector3DValueSerializer.cs
- IPHostEntry.cs
- Encoder.cs
- XmlObjectSerializerReadContextComplex.cs
- ExpandCollapseProviderWrapper.cs
- CompilationUnit.cs
- MouseCaptureWithinProperty.cs
- OutputCacheSettingsSection.cs
- Wizard.cs
- CultureSpecificStringDictionary.cs
- ActivityCodeDomSerializationManager.cs
- SqlBuffer.cs
- FlowDocumentPageViewerAutomationPeer.cs
- Path.cs
- TableLayoutRowStyleCollection.cs
- SafeNativeMethodsCLR.cs
- WebPartTransformerCollection.cs
- WSSecurityTokenSerializer.cs
- CmsUtils.cs
- PageAsyncTask.cs
- CmsInterop.cs
- GridViewRowEventArgs.cs
- DataGridViewIntLinkedList.cs
- DataGridViewBand.cs
- CapabilitiesRule.cs
- Permission.cs
- MachineKeyConverter.cs
- QilGenerator.cs
- RectIndependentAnimationStorage.cs
- SecurityRuntime.cs
- TimelineGroup.cs
- ResourcesChangeInfo.cs
- XPathSelfQuery.cs
- SymLanguageType.cs
- CaseCqlBlock.cs
- DataTransferEventArgs.cs
- ObjectIDGenerator.cs
- XXXOnTypeBuilderInstantiation.cs
- DataTableMappingCollection.cs
- XmlElementList.cs
- RequestContext.cs
- KnownBoxes.cs
- UnionExpr.cs
- JumpList.cs
- COM2PropertyDescriptor.cs
- CreatingCookieEventArgs.cs
- XmlSchemaAny.cs
- ParseChildrenAsPropertiesAttribute.cs
- Group.cs
- TransactionScope.cs
- NumericUpDownAccelerationCollection.cs
- XmlName.cs
- SmiMetaDataProperty.cs
- DataObject.cs
- RemoteDebugger.cs
- EventManager.cs
- SimpleTypeResolver.cs
- ClientType.cs
- WindowShowOrOpenTracker.cs
- _HeaderInfoTable.cs
- ReflectionServiceProvider.cs
- JsonXmlDataContract.cs
- DoubleAnimationUsingKeyFrames.cs
- TrackingServices.cs
- HierarchicalDataBoundControlAdapter.cs
- XPathNodeInfoAtom.cs
- sqlinternaltransaction.cs
- Keywords.cs
- DesignerSelectionListAdapter.cs
- WorkflowQueueInfo.cs
- ReceiveCompletedEventArgs.cs
- Query.cs
- WindowsAuthenticationModule.cs
- DataSourceDescriptorCollection.cs
- WebExceptionStatus.cs
- HostingMessageProperty.cs
- SingleResultAttribute.cs
- _NestedMultipleAsyncResult.cs
- MemberPathMap.cs
- XmlChildEnumerator.cs
- HttpFileCollectionBase.cs
- SortDescriptionCollection.cs
- Substitution.cs
- DataGridViewComboBoxColumn.cs
- OrderByQueryOptionExpression.cs
- PropertyPushdownHelper.cs
- _IPv6Address.cs
- NotImplementedException.cs
- PolicyLevel.cs
- SmtpReplyReaderFactory.cs
- DesignSurfaceCollection.cs
- IProducerConsumerCollection.cs
- RequestSecurityToken.cs
- SQLRoleProvider.cs
- RIPEMD160.cs
- WmlPageAdapter.cs
- Decimal.cs
- RequestCacheManager.cs
- wgx_render.cs
- SecurityResources.cs