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
- URLIdentityPermission.cs
- DiscreteKeyFrames.cs
- Repeater.cs
- OAVariantLib.cs
- NegatedCellConstant.cs
- MimeReturn.cs
- ConfigurationManagerHelperFactory.cs
- DataGridViewIntLinkedList.cs
- RowSpanVector.cs
- ResourceReferenceKeyNotFoundException.cs
- DetailsView.cs
- PartitionResolver.cs
- NonVisualControlAttribute.cs
- PageStatePersister.cs
- FacetChecker.cs
- __FastResourceComparer.cs
- TrackBar.cs
- GridViewColumnHeader.cs
- ColumnWidthChangedEvent.cs
- DataObjectEventArgs.cs
- ProcessStartInfo.cs
- WindowsListViewScroll.cs
- __Error.cs
- ManipulationStartingEventArgs.cs
- CustomAttributeBuilder.cs
- NameScope.cs
- BCLDebug.cs
- OracleDataReader.cs
- ProviderSettingsCollection.cs
- HandlerWithFactory.cs
- WindowsGraphics.cs
- HttpListener.cs
- XamlReaderHelper.cs
- BufferAllocator.cs
- CodeDirectionExpression.cs
- Ports.cs
- SkinBuilder.cs
- ConsoleKeyInfo.cs
- PageContentCollection.cs
- EdmScalarPropertyAttribute.cs
- PlainXmlSerializer.cs
- TabControl.cs
- AnnotationComponentChooser.cs
- BindingListCollectionView.cs
- JoinElimination.cs
- NotSupportedException.cs
- RadioButtonAutomationPeer.cs
- ObjectView.cs
- ExtensionQuery.cs
- DbCommandTree.cs
- SafeNativeMethods.cs
- xamlnodes.cs
- XsdCachingReader.cs
- AuthenticationModeHelper.cs
- HTMLTextWriter.cs
- UpdateRecord.cs
- HelpKeywordAttribute.cs
- ExceptionRoutedEventArgs.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ProgressiveCrcCalculatingStream.cs
- WindowsIdentity.cs
- ParsedAttributeCollection.cs
- Win32MouseDevice.cs
- ScaleTransform.cs
- PathFigureCollectionConverter.cs
- LoginNameDesigner.cs
- ClientTargetSection.cs
- DrawItemEvent.cs
- AspNetRouteServiceHttpHandler.cs
- DataColumnMapping.cs
- RankException.cs
- InfoCardBaseException.cs
- SiteMapHierarchicalDataSourceView.cs
- HtmlTable.cs
- CancellationTokenSource.cs
- AssemblyAttributesGoHere.cs
- SingleAnimationBase.cs
- DbProviderFactory.cs
- RedistVersionInfo.cs
- SubMenuStyle.cs
- BindingExpression.cs
- OdbcCommandBuilder.cs
- DeploymentSectionCache.cs
- PassportPrincipal.cs
- NamedPermissionSet.cs
- ContentFileHelper.cs
- MarkupCompilePass2.cs
- GeneralTransform3DGroup.cs
- AttachedPropertyMethodSelector.cs
- ListSourceHelper.cs
- WebPartMenuStyle.cs
- ReverseInheritProperty.cs
- SafePointer.cs
- ISAPIWorkerRequest.cs
- ListenerServiceInstallComponent.cs
- ImagingCache.cs
- TableCell.cs
- TextTreeExtractElementUndoUnit.cs
- ApplicationServicesHostFactory.cs
- CompiledIdentityConstraint.cs