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
- RefreshResponseInfo.cs
- TableLayoutStyleCollection.cs
- BuildManager.cs
- VisualTreeHelper.cs
- EdmFunctions.cs
- Helpers.cs
- PrimitiveXmlSerializers.cs
- InvalidPrinterException.cs
- GiveFeedbackEvent.cs
- MailMessage.cs
- SoapSchemaExporter.cs
- XmlDataLoader.cs
- GiveFeedbackEvent.cs
- CodeTypeReferenceSerializer.cs
- PowerModeChangedEventArgs.cs
- WindowsUpDown.cs
- ActivityBindForm.cs
- SHA512Managed.cs
- AsymmetricKeyExchangeDeformatter.cs
- DocumentViewerConstants.cs
- HTTPNotFoundHandler.cs
- ContentPlaceHolder.cs
- CodeLinePragma.cs
- IntPtr.cs
- QilStrConcatenator.cs
- HelpPage.cs
- nulltextnavigator.cs
- XsltInput.cs
- ManifestResourceInfo.cs
- UmAlQuraCalendar.cs
- IFlowDocumentViewer.cs
- PenThreadWorker.cs
- SettingsBase.cs
- EventProviderWriter.cs
- TimeSpanOrInfiniteConverter.cs
- MatrixKeyFrameCollection.cs
- TreeNodeEventArgs.cs
- EndpointAddressMessageFilterTable.cs
- FieldAccessException.cs
- SchemaAttDef.cs
- GridViewSortEventArgs.cs
- EngineSiteSapi.cs
- IisTraceListener.cs
- PageContentCollection.cs
- CompressionTransform.cs
- SqlTriggerAttribute.cs
- AmbientLight.cs
- QilNode.cs
- _WinHttpWebProxyDataBuilder.cs
- SafeLocalAllocation.cs
- ChangeTracker.cs
- GridViewColumnCollection.cs
- AtomServiceDocumentSerializer.cs
- GetWinFXPath.cs
- OdbcEnvironment.cs
- WasHttpHandlersInstallComponent.cs
- SqlProfileProvider.cs
- FixedSOMTable.cs
- HyperLinkField.cs
- ReadOnlyDictionary.cs
- AutomationPropertyInfo.cs
- ParameterCollection.cs
- StaticTextPointer.cs
- ObjectSelectorEditor.cs
- DescendentsWalker.cs
- DbFunctionCommandTree.cs
- UrlEncodedParameterWriter.cs
- FlowDocumentPaginator.cs
- ActivationService.cs
- StylusShape.cs
- ObjectDataSourceDisposingEventArgs.cs
- RuntimeArgument.cs
- Policy.cs
- ParameterElement.cs
- ThreadTrace.cs
- SortDescriptionCollection.cs
- ItemsPanelTemplate.cs
- DesignTimeXamlWriter.cs
- FileVersionInfo.cs
- Codec.cs
- HttpListenerException.cs
- UnionCodeGroup.cs
- LoginUtil.cs
- Brush.cs
- ChangeProcessor.cs
- QueryContinueDragEvent.cs
- SelectionItemProviderWrapper.cs
- SizeConverter.cs
- VectorAnimationBase.cs
- TagPrefixCollection.cs
- DataSpaceManager.cs
- CodeMemberProperty.cs
- AccessDataSource.cs
- OdbcStatementHandle.cs
- Operator.cs
- XPathBinder.cs
- XPathSingletonIterator.cs
- EditingScope.cs
- shaper.cs
- ArrayConverter.cs