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
- IgnoreSection.cs
- VideoDrawing.cs
- ValidationSummary.cs
- ExtendedProtectionPolicyElement.cs
- UIElement3D.cs
- hebrewshape.cs
- Regex.cs
- Publisher.cs
- ToolStripRendererSwitcher.cs
- PanelStyle.cs
- ChildrenQuery.cs
- TextTreeDeleteContentUndoUnit.cs
- MultipartContentParser.cs
- FuncTypeConverter.cs
- StylusButtonCollection.cs
- EnumerableRowCollection.cs
- NonClientArea.cs
- EntityParameterCollection.cs
- DynamicContractTypeBuilder.cs
- IFlowDocumentViewer.cs
- MdiWindowListItemConverter.cs
- DBProviderConfigurationHandler.cs
- SqlGenericUtil.cs
- AndMessageFilter.cs
- SecondaryViewProvider.cs
- XmlReturnReader.cs
- connectionpool.cs
- DataSourceProvider.cs
- MarkupProperty.cs
- processwaithandle.cs
- StateMachine.cs
- PropertyEmitter.cs
- DbConnectionPoolCounters.cs
- peersecuritysettings.cs
- HwndHostAutomationPeer.cs
- NavigationHelper.cs
- MouseButton.cs
- DataControlButton.cs
- OperationBehaviorAttribute.cs
- PartialArray.cs
- ToggleButtonAutomationPeer.cs
- EventHandlersStore.cs
- MessageDecoder.cs
- MessageLogger.cs
- SystemException.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- ZipArchive.cs
- TargetParameterCountException.cs
- ImageField.cs
- TransformerInfo.cs
- SoapSchemaExporter.cs
- TraceContext.cs
- _ChunkParse.cs
- SvcMapFile.cs
- _SecureChannel.cs
- FileUpload.cs
- AssemblySettingAttributes.cs
- SiteMapProvider.cs
- Normalization.cs
- _ProxyRegBlob.cs
- PolicyStatement.cs
- Reference.cs
- SqlParameterizer.cs
- WpfSharedXamlSchemaContext.cs
- EnlistmentTraceIdentifier.cs
- SqlXmlStorage.cs
- MonthChangedEventArgs.cs
- DataGridViewCellEventArgs.cs
- QuaternionRotation3D.cs
- SecurityAppliedMessage.cs
- XmlRawWriterWrapper.cs
- HtmlInputRadioButton.cs
- WaitHandleCannotBeOpenedException.cs
- HelpProvider.cs
- CharacterMetricsDictionary.cs
- FacetValues.cs
- mediaeventshelper.cs
- Overlapped.cs
- SqlCommandSet.cs
- RuntimeCompatibilityAttribute.cs
- odbcmetadatafactory.cs
- AnimationTimeline.cs
- MsmqEncryptionAlgorithm.cs
- BitmapFrameEncode.cs
- SystemIPv4InterfaceProperties.cs
- CodeThrowExceptionStatement.cs
- NameTable.cs
- PrintPageEvent.cs
- CodeAccessSecurityEngine.cs
- RtfControlWordInfo.cs
- cookiecontainer.cs
- DataTableReaderListener.cs
- ConstructorExpr.cs
- Fault.cs
- AutoGeneratedFieldProperties.cs
- DPTypeDescriptorContext.cs
- ApplicationSecurityInfo.cs
- TextMetrics.cs
- SerialErrors.cs
- FamilyMap.cs