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
- Crypto.cs
- StaticResourceExtension.cs
- Query.cs
- SqlClientWrapperSmiStreamChars.cs
- DataTemplateSelector.cs
- UrlMappingsSection.cs
- StringPropertyBuilder.cs
- ColumnHeader.cs
- XmlMembersMapping.cs
- ListViewGroupItemCollection.cs
- HijriCalendar.cs
- TextFormatter.cs
- BrowserCapabilitiesFactory.cs
- ConstNode.cs
- UTF8Encoding.cs
- LayoutEditorPart.cs
- SelectionProviderWrapper.cs
- GrammarBuilderWildcard.cs
- ScrollData.cs
- GiveFeedbackEventArgs.cs
- UpdateManifestForBrowserApplication.cs
- UIElement.cs
- DbProviderFactories.cs
- CultureInfoConverter.cs
- QueryExpression.cs
- rsa.cs
- __TransparentProxy.cs
- DataGridViewRowCancelEventArgs.cs
- SignatureToken.cs
- CancelAsyncOperationRequest.cs
- GACMembershipCondition.cs
- ExtractedStateEntry.cs
- ObjectStorage.cs
- HashAlgorithm.cs
- BuildResult.cs
- OleDbWrapper.cs
- MulticastIPAddressInformationCollection.cs
- WindowsRichEdit.cs
- CompositeControl.cs
- GPPOINT.cs
- MsmqChannelFactoryBase.cs
- AQNBuilder.cs
- XamlDesignerSerializationManager.cs
- FormConverter.cs
- TextLine.cs
- ComplexTypeEmitter.cs
- OleDbConnection.cs
- GetIndexBinder.cs
- ElementUtil.cs
- TaiwanLunisolarCalendar.cs
- SecurityHelper.cs
- Recipient.cs
- ResourceDescriptionAttribute.cs
- FormatConvertedBitmap.cs
- PrintPreviewDialog.cs
- OleDbConnection.cs
- _ProxyChain.cs
- BindingContext.cs
- BuildResultCache.cs
- unitconverter.cs
- WebBrowserUriTypeConverter.cs
- DBNull.cs
- AppModelKnownContentFactory.cs
- TreeView.cs
- ListMarkerSourceInfo.cs
- SslStream.cs
- SqlConnectionStringBuilder.cs
- UICuesEvent.cs
- PersonalizableTypeEntry.cs
- CapabilitiesState.cs
- InProcStateClientManager.cs
- ExpressionEditorAttribute.cs
- BindUriHelper.cs
- SqlDataSourceRefreshSchemaForm.cs
- EntityDataSourceDesigner.cs
- ExpressionVisitor.cs
- ToolStripSeparator.cs
- XPathDocumentNavigator.cs
- ImpersonationContext.cs
- SchemaType.cs
- Int32Converter.cs
- XmlReflectionImporter.cs
- PathSegment.cs
- WebServiceHost.cs
- XmlWriter.cs
- SortKey.cs
- SimpleApplicationHost.cs
- selecteditemcollection.cs
- DependencyPropertyKey.cs
- ResolveNameEventArgs.cs
- UnitControl.cs
- DocumentGridPage.cs
- MethodBody.cs
- PageOutputColor.cs
- ProviderMetadataCachedInformation.cs
- UrlPath.cs
- SecureConversationServiceCredential.cs
- ResXResourceWriter.cs
- StrongNameKeyPair.cs
- Hex.cs