Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- VisualProxy.cs
- MeshGeometry3D.cs
- DataChangedEventManager.cs
- ConfigXmlDocument.cs
- ClientBase.cs
- TypeConverterAttribute.cs
- ScriptComponentDescriptor.cs
- BaseTreeIterator.cs
- MetadataProperty.cs
- MasterPageCodeDomTreeGenerator.cs
- CalculatedColumn.cs
- LocationEnvironment.cs
- ImmutablePropertyDescriptorGridEntry.cs
- BooleanFunctions.cs
- WindowsContainer.cs
- MemberCollection.cs
- BitmapMetadataEnumerator.cs
- SpotLight.cs
- NetworkCredential.cs
- CodeSnippetTypeMember.cs
- ExpressionEditorSheet.cs
- AutomationEvent.cs
- InstanceCreationEditor.cs
- IntegerValidatorAttribute.cs
- TreeNodeCollection.cs
- ClientTargetCollection.cs
- TransportSecurityProtocolFactory.cs
- AnimationClock.cs
- ChannelSinkStacks.cs
- CodeBinaryOperatorExpression.cs
- CalendarDateChangedEventArgs.cs
- SapiAttributeParser.cs
- HostProtectionException.cs
- UpnEndpointIdentity.cs
- Rect3D.cs
- MenuItem.cs
- ListParagraph.cs
- LeaseManager.cs
- MethodBuilder.cs
- GlobalizationAssembly.cs
- ConsoleTraceListener.cs
- XmlLanguageConverter.cs
- MessageFilterException.cs
- grammarelement.cs
- CompositeActivityMarkupSerializer.cs
- TcpProcessProtocolHandler.cs
- CodeTypeReferenceExpression.cs
- DeploymentSection.cs
- Constants.cs
- ModifiableIteratorCollection.cs
- DataTableReaderListener.cs
- _KerberosClient.cs
- SoapMessage.cs
- NullRuntimeConfig.cs
- DockingAttribute.cs
- XPathDocument.cs
- EFDataModelProvider.cs
- BufferModeSettings.cs
- DataGridViewColumnConverter.cs
- SiteMapHierarchicalDataSourceView.cs
- TextRangeEditLists.cs
- CharEnumerator.cs
- EdmScalarPropertyAttribute.cs
- TextPattern.cs
- OdbcCommandBuilder.cs
- StylusCollection.cs
- ProcessHostConfigUtils.cs
- TransactionManager.cs
- XsltInput.cs
- BamlTreeMap.cs
- _NestedSingleAsyncResult.cs
- EnumUnknown.cs
- StrongNamePublicKeyBlob.cs
- ServicePoint.cs
- InkCanvasInnerCanvas.cs
- PictureBox.cs
- StreamGeometry.cs
- MexHttpsBindingCollectionElement.cs
- InputLanguageSource.cs
- MailHeaderInfo.cs
- ReflectPropertyDescriptor.cs
- TablePattern.cs
- ListBoxItemWrapperAutomationPeer.cs
- HtmlUtf8RawTextWriter.cs
- BmpBitmapEncoder.cs
- ListDictionary.cs
- MgmtConfigurationRecord.cs
- GeneralTransform.cs
- LayoutEngine.cs
- WindowsFormsLinkLabel.cs
- XmlQuerySequence.cs
- ParameterBuilder.cs
- EntityClientCacheKey.cs
- UnitySerializationHolder.cs
- XmlWellformedWriter.cs
- Manipulation.cs
- OutputCacheProfile.cs
- TypeSystem.cs
- AstTree.cs
- StoreItemCollection.Loader.cs