Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / TemplatePartAttribute.cs / 1 / 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. //---------------------------------------------------------------------------- // // 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
- DataBindingExpressionBuilder.cs
- MemberCollection.cs
- Publisher.cs
- DataGridParentRows.cs
- HttpContext.cs
- CultureSpecificStringDictionary.cs
- documentsequencetextpointer.cs
- StructuredTypeInfo.cs
- SelectingProviderEventArgs.cs
- METAHEADER.cs
- Rotation3DAnimationBase.cs
- ReferenceEqualityComparer.cs
- ResXResourceReader.cs
- HtmlInputSubmit.cs
- StringTraceRecord.cs
- ViewCellRelation.cs
- BaseDataBoundControl.cs
- xdrvalidator.cs
- EventlogProvider.cs
- IUnknownConstantAttribute.cs
- TreeNodeStyle.cs
- SelectionProviderWrapper.cs
- DataGridViewAccessibleObject.cs
- NativeCppClassAttribute.cs
- CreateUserWizardStep.cs
- SRef.cs
- BidPrivateBase.cs
- DesignerTransactionCloseEvent.cs
- LoadMessageLogger.cs
- ApplicationServiceHelper.cs
- BatchStream.cs
- BitmapSourceSafeMILHandle.cs
- CipherData.cs
- NavigationService.cs
- TextRangeProviderWrapper.cs
- StateElementCollection.cs
- MemoryFailPoint.cs
- ResolveNextArgumentWorkItem.cs
- TableStyle.cs
- EntityDataSource.cs
- BaseTemplateParser.cs
- arabicshape.cs
- Subtree.cs
- PingOptions.cs
- TraceHelpers.cs
- DbConnectionStringCommon.cs
- CustomAttributeBuilder.cs
- KeyGesture.cs
- EvidenceTypeDescriptor.cs
- NetStream.cs
- DataGridViewIntLinkedList.cs
- FixedSOMTableCell.cs
- AssemblyFilter.cs
- GraphicsPath.cs
- Context.cs
- WebConfigurationFileMap.cs
- StylusCaptureWithinProperty.cs
- SignatureGenerator.cs
- DbXmlEnabledProviderManifest.cs
- DataTrigger.cs
- QuaternionAnimationBase.cs
- RequestStatusBarUpdateEventArgs.cs
- XmlSerializerNamespaces.cs
- LayoutSettings.cs
- DataGridViewCheckBoxCell.cs
- ObjectDataSourceDisposingEventArgs.cs
- metadatamappinghashervisitor.cs
- CodeBlockBuilder.cs
- ObjectConverter.cs
- TrustExchangeException.cs
- ProfileProvider.cs
- OpacityConverter.cs
- ClientFormsIdentity.cs
- FormsAuthenticationModule.cs
- RelationalExpressions.cs
- XmlImplementation.cs
- FunctionImportMapping.cs
- TextBoxRenderer.cs
- PerformanceCounter.cs
- Quaternion.cs
- Ops.cs
- PropertyNames.cs
- ConfigurationSectionGroupCollection.cs
- cookieexception.cs
- ItemCollection.cs
- SmtpFailedRecipientsException.cs
- GridViewSortEventArgs.cs
- ResourceDictionary.cs
- Stackframe.cs
- ServiceModelEnumValidator.cs
- XmlSchemaSearchPattern.cs
- AnnotationResourceCollection.cs
- ConfigurationPropertyAttribute.cs
- SerializationAttributes.cs
- BuildResult.cs
- TemplateManager.cs
- StatusBarItem.cs
- RepeatBehavior.cs
- RayHitTestParameters.cs
- BinaryParser.cs