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
- DbConnectionPoolGroup.cs
- HttpHandlerAction.cs
- SerialPort.cs
- NativeRightsManagementAPIsStructures.cs
- AdornerHitTestResult.cs
- ContentHostHelper.cs
- SpeechUI.cs
- MultiBinding.cs
- MenuCommandService.cs
- DelegateArgumentReference.cs
- PersonalizationEntry.cs
- MouseWheelEventArgs.cs
- BasicCellRelation.cs
- ResolveNameEventArgs.cs
- TextBoxLine.cs
- _LocalDataStore.cs
- DataGridViewCellStyle.cs
- PeerNodeTraceRecord.cs
- CodeTypeParameterCollection.cs
- SqlInternalConnectionTds.cs
- FrameworkElement.cs
- DrawingGroupDrawingContext.cs
- HtmlTextArea.cs
- ContentAlignmentEditor.cs
- XPathScanner.cs
- SqlGatherProducedAliases.cs
- NamespaceDecl.cs
- RenamedEventArgs.cs
- ElementHost.cs
- ExtensibleSyndicationObject.cs
- StylusPointProperties.cs
- MediaPlayerState.cs
- TablePatternIdentifiers.cs
- SemanticTag.cs
- IISMapPath.cs
- CommonGetThemePartSize.cs
- ColorBlend.cs
- webclient.cs
- CodeParameterDeclarationExpression.cs
- TextureBrush.cs
- DbFunctionCommandTree.cs
- GridViewDeleteEventArgs.cs
- ElementProxy.cs
- HttpProcessUtility.cs
- DisplayInformation.cs
- DataGridViewCellValidatingEventArgs.cs
- ApplicationException.cs
- DropSource.cs
- Compiler.cs
- SystemUnicastIPAddressInformation.cs
- RtfControlWordInfo.cs
- WebPageTraceListener.cs
- OracleFactory.cs
- ProcessHostConfigUtils.cs
- ExcCanonicalXml.cs
- ApplicationDirectoryMembershipCondition.cs
- MouseGestureConverter.cs
- InnerItemCollectionView.cs
- OneToOneMappingSerializer.cs
- Binding.cs
- XmlHelper.cs
- DefaultTypeArgumentAttribute.cs
- EventDescriptor.cs
- TdsParserHelperClasses.cs
- newinstructionaction.cs
- NamedObject.cs
- DataGridViewSelectedRowCollection.cs
- TTSEvent.cs
- ContractUtils.cs
- ListBase.cs
- CornerRadiusConverter.cs
- ProfileSettings.cs
- FixedStringLookup.cs
- ProxyWebPart.cs
- DiscoveryServiceExtension.cs
- BaseTemplateCodeDomTreeGenerator.cs
- MiniCustomAttributeInfo.cs
- Typeface.cs
- ChtmlPageAdapter.cs
- TableAdapterManagerNameHandler.cs
- QueryOptionExpression.cs
- ListViewTableCell.cs
- IfAction.cs
- DataGridRow.cs
- SoapSchemaExporter.cs
- HttpChannelListener.cs
- DataObjectMethodAttribute.cs
- FormViewDesigner.cs
- FacetEnabledSchemaElement.cs
- PermissionRequestEvidence.cs
- Path.cs
- FileInfo.cs
- UserControlDesigner.cs
- DbgCompiler.cs
- DateBoldEvent.cs
- ImportCatalogPart.cs
- StorageEntitySetMapping.cs
- log.cs
- ColorKeyFrameCollection.cs
- SmtpDigestAuthenticationModule.cs