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
- PromptStyle.cs
- SiteIdentityPermission.cs
- ThemeDirectoryCompiler.cs
- cookiecontainer.cs
- StylusPlugin.cs
- AssociationSet.cs
- ThousandthOfEmRealDoubles.cs
- EventWaitHandleSecurity.cs
- FormsAuthenticationUserCollection.cs
- ApplicationSecurityManager.cs
- Error.cs
- Point4DConverter.cs
- UriSection.cs
- ProfileBuildProvider.cs
- ObjectSet.cs
- _SslStream.cs
- WaitHandleCannotBeOpenedException.cs
- ExpressionBuilder.cs
- DataGridViewSelectedColumnCollection.cs
- RIPEMD160Managed.cs
- HTMLTagNameToTypeMapper.cs
- VisualTreeHelper.cs
- FirstMatchCodeGroup.cs
- StringAttributeCollection.cs
- ImpersonationContext.cs
- OpenFileDialog.cs
- TerminatorSinks.cs
- ProxyWebPartManagerDesigner.cs
- Aggregates.cs
- TreeNodeMouseHoverEvent.cs
- Pkcs7Signer.cs
- IfAction.cs
- ConfigXmlWhitespace.cs
- FamilyCollection.cs
- ToolTip.cs
- FixedHighlight.cs
- RequiredFieldValidator.cs
- Socket.cs
- ClientConfigurationSystem.cs
- Point.cs
- PerformanceCounterManager.cs
- PropertyReferenceSerializer.cs
- safelinkcollection.cs
- DrawingContextWalker.cs
- DataServiceContext.cs
- TreeBuilderBamlTranslator.cs
- ProgressiveCrcCalculatingStream.cs
- ReferentialConstraint.cs
- WebServiceClientProxyGenerator.cs
- FilteredDataSetHelper.cs
- SettingsPropertyIsReadOnlyException.cs
- WindowsUpDown.cs
- Baml2006ReaderSettings.cs
- Double.cs
- TreeViewHitTestInfo.cs
- ProfileInfo.cs
- FileUtil.cs
- ColorConverter.cs
- DocComment.cs
- UrlMappingCollection.cs
- ProfileProvider.cs
- IsolatedStorageFile.cs
- CatchBlock.cs
- XsdBuilder.cs
- ConfigXmlAttribute.cs
- PerformanceCounterCategory.cs
- SelectionEditingBehavior.cs
- CacheEntry.cs
- CryptoStream.cs
- BuildProvider.cs
- XmlMtomReader.cs
- WindowsHyperlink.cs
- Context.cs
- SchemaNotation.cs
- PasswordPropertyTextAttribute.cs
- HighContrastHelper.cs
- Guid.cs
- PartManifestEntry.cs
- XmlQualifiedName.cs
- ToolStripRenderer.cs
- RegexCaptureCollection.cs
- UIElementIsland.cs
- CompilerInfo.cs
- TypefaceMap.cs
- MenuItemStyle.cs
- Stack.cs
- DataGridViewSelectedRowCollection.cs
- ParserHooks.cs
- SafeNativeMethods.cs
- Permission.cs
- FixedTextBuilder.cs
- FieldAccessException.cs
- IBuiltInEvidence.cs
- ConstructorExpr.cs
- SystemIPGlobalProperties.cs
- DebugControllerThread.cs
- Int32RectValueSerializer.cs
- BaseResourcesBuildProvider.cs
- altserialization.cs
- XmlMemberMapping.cs