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
- PipelineModuleStepContainer.cs
- XmlElementAttribute.cs
- BindableAttribute.cs
- IntegerValidatorAttribute.cs
- SourceFilter.cs
- MILUtilities.cs
- AvTraceFormat.cs
- ToolStripDropDownButton.cs
- TrackingProfileSerializer.cs
- Size3DConverter.cs
- keycontainerpermission.cs
- ActivitySurrogate.cs
- SQLGuidStorage.cs
- StateChangeEvent.cs
- DataGridViewControlCollection.cs
- PageRequestManager.cs
- MarshalByValueComponent.cs
- ComponentCodeDomSerializer.cs
- IfElseDesigner.xaml.cs
- DataGridItemEventArgs.cs
- ApplyImportsAction.cs
- UnknownWrapper.cs
- COM2TypeInfoProcessor.cs
- GenericQueueSurrogate.cs
- MouseBinding.cs
- FieldNameLookup.cs
- XPathNavigator.cs
- SerializerProvider.cs
- URLAttribute.cs
- TextModifierScope.cs
- DescendentsWalker.cs
- ValidationHelpers.cs
- StatusStrip.cs
- SystemInfo.cs
- _IPv6Address.cs
- RepeatButton.cs
- XmlEntityReference.cs
- ExpressionVisitorHelpers.cs
- ConnectionManagementElement.cs
- LinkTarget.cs
- EdmConstants.cs
- StrongNameHelpers.cs
- FilterableAttribute.cs
- HttpInputStream.cs
- SqlConnectionString.cs
- GlobalizationAssembly.cs
- ExpressionConverter.cs
- DictionaryBase.cs
- SchemaMapping.cs
- AjaxFrameworkAssemblyAttribute.cs
- RegularExpressionValidator.cs
- PointConverter.cs
- OutputCacheSettings.cs
- NamespaceQuery.cs
- GridViewDeleteEventArgs.cs
- QueryInterceptorAttribute.cs
- OrderedHashRepartitionEnumerator.cs
- SqlPersonalizationProvider.cs
- XPathNavigator.cs
- UiaCoreApi.cs
- XslAstAnalyzer.cs
- PrintEvent.cs
- FlowPanelDesigner.cs
- versioninfo.cs
- ExpressionBuilderCollection.cs
- TreeNodeMouseHoverEvent.cs
- nulltextcontainer.cs
- Debugger.cs
- Classification.cs
- RtfControlWordInfo.cs
- KnownTypesProvider.cs
- FixedTextBuilder.cs
- HitTestWithPointDrawingContextWalker.cs
- ClientRuntime.cs
- RC2.cs
- controlskin.cs
- SerializationBinder.cs
- UnsafeNativeMethods.cs
- KnownBoxes.cs
- DependencyObjectCodeDomSerializer.cs
- COM2PropertyDescriptor.cs
- TransportDefaults.cs
- LabelDesigner.cs
- CssStyleCollection.cs
- HttpErrorTraceRecord.cs
- QueryGenerator.cs
- TraceLevelStore.cs
- TemplateControlCodeDomTreeGenerator.cs
- LabelInfo.cs
- DetailsViewUpdateEventArgs.cs
- CodeDomSerializationProvider.cs
- PerformanceCounterPermissionEntry.cs
- ControlTemplate.cs
- TextTreeTextElementNode.cs
- hresults.cs
- QueryContinueDragEventArgs.cs
- PriorityBinding.cs
- CodeDOMProvider.cs
- DefaultEvaluationContext.cs
- LineSegment.cs