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
- SafeNativeMethodsMilCoreApi.cs
- DataGridViewRow.cs
- ElementFactory.cs
- Missing.cs
- DataException.cs
- XmlSerializerVersionAttribute.cs
- CapabilitiesRule.cs
- KeyboardEventArgs.cs
- DynamicExpression.cs
- SqlDependencyUtils.cs
- LayoutEditorPart.cs
- PerformanceCounter.cs
- XmlMtomReader.cs
- XmlTextReaderImpl.cs
- documentation.cs
- _ContextAwareResult.cs
- RelationshipSet.cs
- DateTimeOffset.cs
- InfocardExtendedInformationEntry.cs
- NumericUpDown.cs
- ApplicationProxyInternal.cs
- CodeCatchClause.cs
- StringOutput.cs
- SplitContainer.cs
- HttpClientCertificate.cs
- WebZone.cs
- DifferencingCollection.cs
- XPathArrayIterator.cs
- ColorTransformHelper.cs
- EventMappingSettingsCollection.cs
- PlatformCulture.cs
- DesignerSerializerAttribute.cs
- XmlSchemaComplexContentRestriction.cs
- FileChangesMonitor.cs
- Attribute.cs
- HwndStylusInputProvider.cs
- XMLUtil.cs
- NavigatorInput.cs
- SplineKeyFrames.cs
- ItemCollection.cs
- tibetanshape.cs
- RuntimeArgumentHandle.cs
- SvcMapFile.cs
- SqlClientFactory.cs
- SqlDataRecord.cs
- CodeSnippetStatement.cs
- DependencyPropertyConverter.cs
- ExpressionWriter.cs
- DbMetaDataCollectionNames.cs
- LogicalChannelCollection.cs
- ClusterSafeNativeMethods.cs
- SubMenuStyle.cs
- GeneralTransformCollection.cs
- XmlSortKey.cs
- TextBoxLine.cs
- StyleCollectionEditor.cs
- Page.cs
- DataGridParentRows.cs
- XsltArgumentList.cs
- CookieProtection.cs
- EventWaitHandle.cs
- DebugInfoGenerator.cs
- ValueTypeFixupInfo.cs
- DataGridViewRowStateChangedEventArgs.cs
- EncoderBestFitFallback.cs
- HatchBrush.cs
- Visual3DCollection.cs
- Int64.cs
- KnownTypes.cs
- FixedLineResult.cs
- TranslateTransform.cs
- DataRecord.cs
- SiteMembershipCondition.cs
- ListBindingHelper.cs
- HwndSourceParameters.cs
- NativeMethods.cs
- StructureChangedEventArgs.cs
- CompositeTypefaceMetrics.cs
- SecurityMode.cs
- WebPartConnectionsEventArgs.cs
- Container.cs
- StoragePropertyMapping.cs
- HttpResponse.cs
- LoginView.cs
- TreeNode.cs
- RunInstallerAttribute.cs
- storepermissionattribute.cs
- MenuItemCollection.cs
- WebBrowserContainer.cs
- UpDownEvent.cs
- OracleParameterCollection.cs
- ExtensionDataReader.cs
- iisPickupDirectory.cs
- ChannelDispatcher.cs
- ObfuscationAttribute.cs
- SafeUserTokenHandle.cs
- BitFlagsGenerator.cs
- DefaultProfileManager.cs
- PropertyFilterAttribute.cs
- ConfigXmlElement.cs