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
- CopyOfAction.cs
- GlobalizationSection.cs
- Metadata.cs
- Cursors.cs
- QuaternionAnimationUsingKeyFrames.cs
- SqlBulkCopyColumnMapping.cs
- StyleCollectionEditor.cs
- AttributeTableBuilder.cs
- DiscoveryRequestHandler.cs
- DbProviderFactories.cs
- Thumb.cs
- DBCSCodePageEncoding.cs
- OrderedDictionary.cs
- HtmlInputPassword.cs
- ListViewDeleteEventArgs.cs
- PrimitiveDataContract.cs
- ScalarOps.cs
- XmlDataDocument.cs
- CachedCompositeFamily.cs
- WindowsSysHeader.cs
- ContextBase.cs
- ProcessThread.cs
- ViewGenResults.cs
- CacheForPrimitiveTypes.cs
- TimerElapsedEvenArgs.cs
- QilLoop.cs
- Substitution.cs
- DesignConnectionCollection.cs
- ItemCollection.cs
- Assert.cs
- CatalogPartCollection.cs
- ParameterBuilder.cs
- tooltip.cs
- Assert.cs
- FrameworkEventSource.cs
- Boolean.cs
- NumericExpr.cs
- SqlGenerator.cs
- QilUnary.cs
- ClickablePoint.cs
- PerformanceCounterNameAttribute.cs
- ControlUtil.cs
- FileDialog.cs
- ServiceErrorHandler.cs
- HtmlFormWrapper.cs
- CustomAssemblyResolver.cs
- DesignerDataStoredProcedure.cs
- AppDomainShutdownMonitor.cs
- BaseTemplateParser.cs
- RtfToken.cs
- RegexParser.cs
- ViewService.cs
- GeneralTransform3D.cs
- PolyLineSegmentFigureLogic.cs
- ParserContext.cs
- CommandField.cs
- QueryReaderSettings.cs
- PropertyManager.cs
- EntityDesignerBuildProvider.cs
- FixedPage.cs
- TypeResolver.cs
- VerifyHashRequest.cs
- MutexSecurity.cs
- GatewayDefinition.cs
- SQLInt64Storage.cs
- DataGridViewColumn.cs
- ConstructorBuilder.cs
- MergeExecutor.cs
- ObjectContext.cs
- RelationshipEndCollection.cs
- SiteIdentityPermission.cs
- DBSqlParserColumnCollection.cs
- SqlCommandSet.cs
- OfTypeExpression.cs
- DBSqlParser.cs
- ProtocolProfile.cs
- WorkflowServiceBehavior.cs
- ScriptingProfileServiceSection.cs
- OdbcConnectionString.cs
- NetworkInformationException.cs
- WebHttpSecurityElement.cs
- TraceEventCache.cs
- LineMetrics.cs
- NamespaceList.cs
- ContextMenuStrip.cs
- NetSectionGroup.cs
- ProfileSettings.cs
- MsmqInputChannelListenerBase.cs
- XmlMapping.cs
- ToolStripGrip.cs
- ClientUriBehavior.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- DatasetMethodGenerator.cs
- BufferModeSettings.cs
- NegatedCellConstant.cs
- ReceiveContent.cs
- WindowsScroll.cs
- DictionarySectionHandler.cs
- Deflater.cs
- DataTableMappingCollection.cs