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
- DataTableMappingCollection.cs
- BitStream.cs
- PasswordRecovery.cs
- NamedElement.cs
- HelpFileFileNameEditor.cs
- PipeConnection.cs
- UnmanagedMemoryStreamWrapper.cs
- TranslateTransform3D.cs
- PageContentCollection.cs
- HitTestWithPointDrawingContextWalker.cs
- FamilyTypeface.cs
- NativeCppClassAttribute.cs
- ScriptServiceAttribute.cs
- DataComponentMethodGenerator.cs
- EntityDataSourceDataSelectionPanel.cs
- InternalTransaction.cs
- DecimalStorage.cs
- TypedReference.cs
- PersianCalendar.cs
- EndPoint.cs
- UserControl.cs
- HyperLinkColumn.cs
- DecimalAnimationUsingKeyFrames.cs
- DBPropSet.cs
- ReaderOutput.cs
- ScrollProviderWrapper.cs
- ISAPIApplicationHost.cs
- Screen.cs
- HotSpot.cs
- hwndwrapper.cs
- SvcMapFile.cs
- ContractTypeNameCollection.cs
- ConfigurationLocationCollection.cs
- TextMarkerSource.cs
- AsyncWaitHandle.cs
- LineBreakRecord.cs
- ExpressionBuilder.cs
- HttpListener.cs
- CurrencyManager.cs
- ApplicationActivator.cs
- SqlAliaser.cs
- EngineSite.cs
- TraversalRequest.cs
- AddInPipelineAttributes.cs
- XmlSchemaSimpleTypeList.cs
- ManagementException.cs
- WindowsFont.cs
- Sorting.cs
- OleDbSchemaGuid.cs
- DateTimeHelper.cs
- XMLSyntaxException.cs
- DataControlButton.cs
- OrderedDictionary.cs
- SpecularMaterial.cs
- SqlDataSourceSelectingEventArgs.cs
- SQLMoney.cs
- ParameterBuilder.cs
- FormatException.cs
- DelegateCompletionCallbackWrapper.cs
- ExpandableObjectConverter.cs
- HtmlControl.cs
- TreeNodeStyle.cs
- GregorianCalendar.cs
- HTMLTagNameToTypeMapper.cs
- ConnectionOrientedTransportElement.cs
- EFAssociationProvider.cs
- regiisutil.cs
- HyperLinkField.cs
- GregorianCalendar.cs
- ProfileManager.cs
- ConnectionStringsExpressionBuilder.cs
- _NetworkingPerfCounters.cs
- EventDescriptor.cs
- LinqExpressionNormalizer.cs
- InvalidCardException.cs
- Line.cs
- FamilyCollection.cs
- UIHelper.cs
- COM2IProvidePropertyBuilderHandler.cs
- XmlValidatingReaderImpl.cs
- SerializableReadOnlyDictionary.cs
- PropertyTabChangedEvent.cs
- StreamWriter.cs
- ApplicationHost.cs
- iisPickupDirectory.cs
- DispatcherEventArgs.cs
- RNGCryptoServiceProvider.cs
- EntryIndex.cs
- TagMapCollection.cs
- XmlSchemaExporter.cs
- View.cs
- Translator.cs
- SQlBooleanStorage.cs
- ColumnPropertiesGroup.cs
- RawStylusInput.cs
- ImageUrlEditor.cs
- Int32KeyFrameCollection.cs
- HttpContext.cs
- ConnectionManager.cs
- CleanUpVirtualizedItemEventArgs.cs