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
- X509Certificate2.cs
- SynchronizationContext.cs
- TypeDelegator.cs
- DataGridViewLinkColumn.cs
- TextTreeRootTextBlock.cs
- TrustSection.cs
- FloaterParaClient.cs
- ControlBindingsCollection.cs
- BindingWorker.cs
- SystemIcmpV4Statistics.cs
- MarginCollapsingState.cs
- SHA1Managed.cs
- TraceListener.cs
- ElementNotAvailableException.cs
- ShaperBuffers.cs
- ServerValidateEventArgs.cs
- DescendantQuery.cs
- DesigntimeLicenseContext.cs
- SourceExpressionException.cs
- HtmlControlPersistable.cs
- PrintDialog.cs
- DataSysAttribute.cs
- ProcessHostConfigUtils.cs
- Crc32.cs
- _BufferOffsetSize.cs
- LoadRetryAsyncResult.cs
- RoutedEventConverter.cs
- XmlSecureResolver.cs
- GridItemPattern.cs
- WebBrowserNavigatingEventHandler.cs
- DependencyPropertyAttribute.cs
- CompilerScopeManager.cs
- TreeNodeCollection.cs
- AppDomainProtocolHandler.cs
- HostedHttpRequestAsyncResult.cs
- _Events.cs
- DiscardableAttribute.cs
- BitmapCacheBrush.cs
- RoleManagerEventArgs.cs
- TypedAsyncResult.cs
- TypedReference.cs
- HttpCachePolicy.cs
- SqlVersion.cs
- RegistrationServices.cs
- DateTimeConstantAttribute.cs
- _TimerThread.cs
- TextTreeInsertElementUndoUnit.cs
- SharedPerformanceCounter.cs
- OdbcException.cs
- ProcessThread.cs
- CheckBoxPopupAdapter.cs
- SetStateDesigner.cs
- MarkupProperty.cs
- safex509handles.cs
- VariableQuery.cs
- AbstractDataSvcMapFileLoader.cs
- ApplicationDirectory.cs
- DesignerHost.cs
- ImportException.cs
- ToggleProviderWrapper.cs
- MimeMultiPart.cs
- Pen.cs
- MatrixTransform3D.cs
- BooleanAnimationBase.cs
- Listbox.cs
- XmlObjectSerializer.cs
- RepeaterCommandEventArgs.cs
- ProviderSettings.cs
- SessionStateItemCollection.cs
- WorkflowServiceInstance.cs
- Model3D.cs
- OracleConnection.cs
- glyphs.cs
- GradientStop.cs
- AtomMaterializer.cs
- BaseTemplateBuildProvider.cs
- MergePropertyDescriptor.cs
- XsltSettings.cs
- HandleCollector.cs
- XamlStream.cs
- SqlRetyper.cs
- CodeChecksumPragma.cs
- EndpointReference.cs
- ContentType.cs
- Int32EqualityComparer.cs
- URI.cs
- FontUnit.cs
- ListSortDescription.cs
- RulePatternOps.cs
- HyperLink.cs
- ProviderConnectionPointCollection.cs
- XmlIncludeAttribute.cs
- InputElement.cs
- GeneralTransform2DTo3DTo2D.cs
- OleAutBinder.cs
- ObjectListField.cs
- QueryCreatedEventArgs.cs
- GroupLabel.cs
- SafeNativeMethods.cs
- IndexedString.cs