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
- ActivityCodeDomSerializer.cs
- NativeRecognizer.cs
- ListBindableAttribute.cs
- UriSection.cs
- OpCodes.cs
- RegexWriter.cs
- X509DefaultServiceCertificateElement.cs
- SchemaTypeEmitter.cs
- ExceptionHelpers.cs
- PageCatalogPart.cs
- DoWorkEventArgs.cs
- TypedReference.cs
- CodeSnippetExpression.cs
- ClientSettings.cs
- activationcontext.cs
- VectorCollectionConverter.cs
- oledbmetadatacolumnnames.cs
- CodeCompileUnit.cs
- KnownTypesHelper.cs
- IpcChannelHelper.cs
- PartialCachingControl.cs
- XPathNodeList.cs
- ContentTextAutomationPeer.cs
- SmiSettersStream.cs
- DataSetUtil.cs
- ImageListDesigner.cs
- ListenerSessionConnection.cs
- BindUriHelper.cs
- ManagementObjectSearcher.cs
- WmlTextBoxAdapter.cs
- EventProperty.cs
- MetaData.cs
- TypeLoadException.cs
- FillRuleValidation.cs
- FontSizeConverter.cs
- Models.cs
- __TransparentProxy.cs
- _KerberosClient.cs
- MatrixConverter.cs
- FormsAuthenticationUser.cs
- MouseEvent.cs
- WorkflowServiceAttributes.cs
- ProtocolsConfigurationHandler.cs
- Base64Decoder.cs
- WrapPanel.cs
- PackageFilter.cs
- CalendarDay.cs
- EventTask.cs
- QueryOutputWriter.cs
- UrlAuthFailedErrorFormatter.cs
- _NtlmClient.cs
- LabelEditEvent.cs
- TraceHwndHost.cs
- SafeViewOfFileHandle.cs
- Base64Encoder.cs
- DataServiceContext.cs
- PassportAuthentication.cs
- ListBoxAutomationPeer.cs
- FixedSOMTextRun.cs
- AuthenticationService.cs
- RegistryPermission.cs
- BitmapCodecInfo.cs
- PageParser.cs
- Int32RectConverter.cs
- EventSetter.cs
- RequestSecurityToken.cs
- BooleanToVisibilityConverter.cs
- TypeUnloadedException.cs
- InfoCardClaimCollection.cs
- StrongTypingException.cs
- HijriCalendar.cs
- PropertyEntry.cs
- BinHexDecoder.cs
- HttpSocketManager.cs
- ViewCellRelation.cs
- QueryGenerator.cs
- DbDeleteCommandTree.cs
- MethodInfo.cs
- XmlSchemaType.cs
- QilBinary.cs
- TextBox.cs
- TraceSource.cs
- ProfileManager.cs
- ListBindingConverter.cs
- WebConfigurationManager.cs
- LabelDesigner.cs
- PublishLicense.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- FontFamily.cs
- AssociationEndMember.cs
- MenuItemCollection.cs
- CodeAccessSecurityEngine.cs
- FontSourceCollection.cs
- Recipient.cs
- SerializationAttributes.cs
- XpsManager.cs
- TrackingProfileDeserializationException.cs
- ClientFormsIdentity.cs
- SerializationInfoEnumerator.cs
- DefaultValueConverter.cs