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
- DiscreteKeyFrames.cs
- SoapProtocolReflector.cs
- SystemNetHelpers.cs
- HwndMouseInputProvider.cs
- QilVisitor.cs
- MethodImplAttribute.cs
- ExternalFile.cs
- MetadataReference.cs
- TouchDevice.cs
- StylusPointDescription.cs
- EventTask.cs
- TextServicesManager.cs
- WhitespaceRule.cs
- DiscoveryInnerClientManaged11.cs
- ToolTip.cs
- SqlCommandSet.cs
- TimelineGroup.cs
- Helper.cs
- CornerRadiusConverter.cs
- LinqDataSourceContextData.cs
- RootBuilder.cs
- UrlMappingCollection.cs
- NullableDoubleMinMaxAggregationOperator.cs
- IisTraceListener.cs
- HealthMonitoringSectionHelper.cs
- TypeHelpers.cs
- OleDbCommandBuilder.cs
- ReversePositionQuery.cs
- DoubleAnimation.cs
- ProxyWebPartManager.cs
- BaseEntityWrapper.cs
- RulePatternOps.cs
- FunctionImportMapping.cs
- ToolStripMenuItem.cs
- ObjectSecurity.cs
- OptimisticConcurrencyException.cs
- ClientSettingsStore.cs
- keycontainerpermission.cs
- DataGridViewCellStateChangedEventArgs.cs
- SqlConnectionHelper.cs
- dataSvcMapFileLoader.cs
- EncryptedData.cs
- WebPartDisplayModeEventArgs.cs
- TypeBrowser.xaml.cs
- WrappedReader.cs
- HandleCollector.cs
- EmptyImpersonationContext.cs
- EdmComplexPropertyAttribute.cs
- ConnectionProviderAttribute.cs
- ControlPropertyNameConverter.cs
- SystemTcpConnection.cs
- MexHttpBindingElement.cs
- PropertyGridEditorPart.cs
- ConstNode.cs
- IPAddressCollection.cs
- DesignTimeParseData.cs
- ActivityTypeResolver.xaml.cs
- BamlReader.cs
- GlyphsSerializer.cs
- ToolStripItem.cs
- ParentQuery.cs
- FamilyTypefaceCollection.cs
- ClipboardData.cs
- SizeAnimationUsingKeyFrames.cs
- CodeCompileUnit.cs
- Shape.cs
- CachedFontFamily.cs
- DataGridHeaderBorder.cs
- BamlResourceDeserializer.cs
- AssemblyNameProxy.cs
- CompositionDesigner.cs
- XmlSchemaSimpleTypeList.cs
- Point3D.cs
- BigInt.cs
- JumpItem.cs
- ImmComposition.cs
- PackageRelationship.cs
- MapPathBasedVirtualPathProvider.cs
- WebReferencesBuildProvider.cs
- InputDevice.cs
- PeerContact.cs
- WebConfigurationHost.cs
- Compiler.cs
- KerberosSecurityTokenProvider.cs
- ExpandSegmentCollection.cs
- LabelExpression.cs
- storepermissionattribute.cs
- TextRangeEditLists.cs
- PngBitmapDecoder.cs
- RegistryExceptionHelper.cs
- Point4DConverter.cs
- XmlSchemaAnnotated.cs
- TileBrush.cs
- FileSecurity.cs
- SecurityDescriptor.cs
- FormatStringEditor.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- PagesChangedEventArgs.cs
- ProcessThread.cs
- FileUtil.cs