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
- CalendarItem.cs
- EntitySetDataBindingList.cs
- FragmentNavigationEventArgs.cs
- LoginUtil.cs
- SwitchElementsCollection.cs
- FilterEventArgs.cs
- PeerTransportSecuritySettings.cs
- AccessDataSource.cs
- RequestDescription.cs
- ApplicationProxyInternal.cs
- GridViewColumnHeaderAutomationPeer.cs
- InvokeAction.cs
- XamlRtfConverter.cs
- CompiledQuery.cs
- CodeCompileUnit.cs
- _ProxyChain.cs
- FontStretchConverter.cs
- CollectionAdapters.cs
- CqlWriter.cs
- MultipartIdentifier.cs
- XmlUtil.cs
- recordstatescratchpad.cs
- PointUtil.cs
- ExpressionVisitor.cs
- EntryWrittenEventArgs.cs
- NamespaceDisplay.xaml.cs
- ProcessInfo.cs
- sitestring.cs
- QueryOperationResponseOfT.cs
- arc.cs
- RectangleConverter.cs
- SpellCheck.cs
- TextElementEnumerator.cs
- COAUTHINFO.cs
- ThreadStartException.cs
- DelayLoadType.cs
- WinInetCache.cs
- RelOps.cs
- RequestQueue.cs
- GetMemberBinder.cs
- NameValuePermission.cs
- IntranetCredentialPolicy.cs
- XsltOutput.cs
- SemanticKeyElement.cs
- objectresult_tresulttype.cs
- SQLResource.cs
- Rijndael.cs
- AnimationClock.cs
- RepeatBehaviorConverter.cs
- NotSupportedException.cs
- PropertyEmitter.cs
- OdbcConnectionOpen.cs
- DataListAutoFormat.cs
- LocationReference.cs
- RootBrowserWindowAutomationPeer.cs
- BitConverter.cs
- XmlAnyElementAttribute.cs
- DataContractSet.cs
- MetadataArtifactLoaderComposite.cs
- InstanceHandleReference.cs
- ImageMap.cs
- WebPartUtil.cs
- TemplateField.cs
- ImageBrush.cs
- BitmapSource.cs
- DataGridViewAccessibleObject.cs
- CreateUserWizard.cs
- NetCodeGroup.cs
- InstanceStore.cs
- DesignerTextWriter.cs
- UIElementParagraph.cs
- PropertyTabAttribute.cs
- SelectorItemAutomationPeer.cs
- SemaphoreSecurity.cs
- SkinBuilder.cs
- LinqDataSourceValidationException.cs
- FlowPosition.cs
- WebPart.cs
- AddInActivator.cs
- XmlSchemaComplexContentExtension.cs
- ClientSession.cs
- StringWriter.cs
- InitializerFacet.cs
- ConfigurationManagerInternalFactory.cs
- ExtendedProtectionPolicyTypeConverter.cs
- GroupBoxRenderer.cs
- Evidence.cs
- FixedTextContainer.cs
- ImageListStreamer.cs
- Decimal.cs
- PerspectiveCamera.cs
- ActivationWorker.cs
- XmlReflectionMember.cs
- MailAddress.cs
- HTTPNotFoundHandler.cs
- XmlAttributeOverrides.cs
- BaseInfoTable.cs
- StreamGeometryContext.cs
- RegexBoyerMoore.cs
- ClientConvert.cs