Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / TemplatePartAttribute.cs / 1305600 / 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
- TextBreakpoint.cs
- System.Data_BID.cs
- MutexSecurity.cs
- Ops.cs
- EntityProxyTypeInfo.cs
- DecimalAnimationBase.cs
- TableProviderWrapper.cs
- ItemsControl.cs
- COM2ExtendedUITypeEditor.cs
- Propagator.Evaluator.cs
- XmlSchemaSimpleTypeList.cs
- RequestCacheValidator.cs
- TreeNodeCollection.cs
- TrackBarRenderer.cs
- ValidationPropertyAttribute.cs
- CodeGenerator.cs
- DataSourceXmlAttributeAttribute.cs
- ConfigurationSchemaErrors.cs
- PeerEndPoint.cs
- TemplateColumn.cs
- RectangleGeometry.cs
- AttachedPropertyInfo.cs
- Int64AnimationUsingKeyFrames.cs
- URLAttribute.cs
- UserControlAutomationPeer.cs
- AsymmetricSignatureFormatter.cs
- ConstructorNeedsTagAttribute.cs
- DataKeyArray.cs
- DataGridViewSelectedCellCollection.cs
- GestureRecognitionResult.cs
- ListItemCollection.cs
- mediaeventargs.cs
- NativeBuffer.cs
- JulianCalendar.cs
- SharedConnectionWorkflowTransactionService.cs
- SafeProcessHandle.cs
- DateTimeSerializationSection.cs
- WindowsSpinner.cs
- CollectionChangeEventArgs.cs
- RoleGroup.cs
- PrintDialog.cs
- RepeatBehavior.cs
- TextContainerHelper.cs
- SqlTransaction.cs
- EditingCoordinator.cs
- TailCallAnalyzer.cs
- ExceptionHandler.cs
- ControlUtil.cs
- SqlConnection.cs
- StatusBarPanelClickEvent.cs
- RIPEMD160Managed.cs
- ToolStripMenuItem.cs
- MediaElementAutomationPeer.cs
- XamlDesignerSerializationManager.cs
- XPathNavigator.cs
- WebSysDescriptionAttribute.cs
- XamlTypeMapper.cs
- InternalEnumValidatorAttribute.cs
- UniqueEventHelper.cs
- UrlPropertyAttribute.cs
- SecurityTokenAuthenticator.cs
- KnownAssembliesSet.cs
- ScriptResourceInfo.cs
- InitializationEventAttribute.cs
- NodeInfo.cs
- FrameworkPropertyMetadata.cs
- OdbcDataAdapter.cs
- VBIdentifierName.cs
- XamlTemplateSerializer.cs
- XmlExpressionDumper.cs
- MapPathBasedVirtualPathProvider.cs
- TrustManagerMoreInformation.cs
- WithStatement.cs
- SHA512Managed.cs
- CompilerLocalReference.cs
- HtmlInputHidden.cs
- EncodingInfo.cs
- OrderedHashRepartitionStream.cs
- Byte.cs
- Terminate.cs
- WindowsPen.cs
- Symbol.cs
- ArgumentOutOfRangeException.cs
- Stroke2.cs
- SqlDataSource.cs
- SchemaMapping.cs
- ControlIdConverter.cs
- CreateUserWizardStep.cs
- OutputChannelBinder.cs
- PolyQuadraticBezierSegment.cs
- FamilyTypeface.cs
- XmlSchemaDatatype.cs
- SQLByteStorage.cs
- BrowserDefinitionCollection.cs
- HierarchicalDataSourceDesigner.cs
- ManualResetEvent.cs
- Metafile.cs
- FontNameEditor.cs
- MappingException.cs
- HttpValueCollection.cs