Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / TemplatePartAttribute.cs / 1305600 / TemplatePartAttribute.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; namespace System.Windows { ////// Style authors should be able to identify the part type used for styling the specific class. /// The part is usually required in the style and should have a specific predefined name. /// [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] public sealed class TemplatePartAttribute : Attribute { ////// Default constructor /// public TemplatePartAttribute() { } ////// Part name used by the class to indentify required element in the style /// public string Name { get { return _name; } set { _name = value; } } ////// Type of the element that should be used as a part with name specified in TemplatePartAttribute.Name /// public Type Type { get { return _type; } set { _type = value; } } private string _name; private Type _type; } } // 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
- SqlMultiplexer.cs
- BooleanFunctions.cs
- HttpProtocolReflector.cs
- TextContainerHelper.cs
- Point4D.cs
- DurableInstanceProvider.cs
- ButtonAutomationPeer.cs
- TreeViewAutomationPeer.cs
- WinEventTracker.cs
- TableCellAutomationPeer.cs
- KeyGestureConverter.cs
- ListView.cs
- MarkerProperties.cs
- ObjectCacheHost.cs
- SerializationInfoEnumerator.cs
- SafePipeHandle.cs
- ObjectStateManagerMetadata.cs
- DoWhileDesigner.xaml.cs
- FontStretch.cs
- AccessKeyManager.cs
- Validator.cs
- DBSqlParserTable.cs
- ZipIOModeEnforcingStream.cs
- DESCryptoServiceProvider.cs
- WeakReference.cs
- FixedTextPointer.cs
- System.Data.OracleClient_BID.cs
- QilList.cs
- ThemeableAttribute.cs
- TraceRecord.cs
- MembershipSection.cs
- _NegoState.cs
- CodeAccessPermission.cs
- WebColorConverter.cs
- TiffBitmapEncoder.cs
- HtmlInputPassword.cs
- OverflowException.cs
- ThreadExceptionEvent.cs
- QualificationDataAttribute.cs
- messageonlyhwndwrapper.cs
- ButtonBaseAutomationPeer.cs
- FontDriver.cs
- ValueTable.cs
- RuntimeArgumentHandle.cs
- _NestedMultipleAsyncResult.cs
- DataGridViewSelectedCellCollection.cs
- LabelAutomationPeer.cs
- CompressedStack.cs
- XmlValueConverter.cs
- SplineKeyFrames.cs
- ProtocolsSection.cs
- SecurityCapabilities.cs
- MILUtilities.cs
- OleDbPropertySetGuid.cs
- WebConfigurationFileMap.cs
- WsdlBuildProvider.cs
- CompareValidator.cs
- BoundsDrawingContextWalker.cs
- XPathNode.cs
- DataReceivedEventArgs.cs
- GenericEnumerator.cs
- CacheEntry.cs
- CharKeyFrameCollection.cs
- HttpCachePolicyElement.cs
- SafeHandles.cs
- TrackBar.cs
- IndexedSelectQueryOperator.cs
- FaultPropagationQuery.cs
- PageThemeParser.cs
- _NegoStream.cs
- QueryableDataSourceEditData.cs
- SystemInformation.cs
- RuleSettings.cs
- CodeRegionDirective.cs
- DataServiceProcessingPipeline.cs
- TextProperties.cs
- AttachmentCollection.cs
- ManifestResourceInfo.cs
- COM2PropertyPageUITypeConverter.cs
- MetadataCache.cs
- GlobalId.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- CaseInsensitiveHashCodeProvider.cs
- WebPartConnectionsConfigureVerb.cs
- ServiceDescriptionReflector.cs
- ArrangedElementCollection.cs
- RenderingBiasValidation.cs
- ToolStripScrollButton.cs
- MouseEventArgs.cs
- ApplicationTrust.cs
- StreamWithDictionary.cs
- DBDataPermissionAttribute.cs
- WeakRefEnumerator.cs
- FontStretchConverter.cs
- Executor.cs
- TextTreeInsertElementUndoUnit.cs
- _BaseOverlappedAsyncResult.cs
- SecurityRuntime.cs
- CultureInfo.cs
- EraserBehavior.cs