Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- XmlSchemaSimpleTypeList.cs
- DockAndAnchorLayout.cs
- AssemblyCache.cs
- PieceDirectory.cs
- Parser.cs
- LineUtil.cs
- _NegoState.cs
- DesignTimeTemplateParser.cs
- Type.cs
- SafeNativeMethods.cs
- EventSinkActivity.cs
- DigestComparer.cs
- BaseDataList.cs
- Wow64ConfigurationLoader.cs
- GridLength.cs
- EntityContainer.cs
- EntityCommandCompilationException.cs
- Comparer.cs
- DbParameterCollectionHelper.cs
- SelectionWordBreaker.cs
- PageTheme.cs
- SmtpMail.cs
- ThreadExceptionDialog.cs
- SafeMILHandle.cs
- __ConsoleStream.cs
- EdmProviderManifest.cs
- Console.cs
- StaticFileHandler.cs
- QuotedStringWriteStateInfo.cs
- X509Utils.cs
- SamlAttributeStatement.cs
- Expression.cs
- ScaleTransform3D.cs
- ZipQueryOperator.cs
- PrintControllerWithStatusDialog.cs
- ProcessManager.cs
- InkCanvasSelection.cs
- TabItem.cs
- HtmlToClrEventProxy.cs
- XmlHierarchicalEnumerable.cs
- DataGridSortCommandEventArgs.cs
- jithelpers.cs
- AssemblyName.cs
- CollectionsUtil.cs
- SignatureDescription.cs
- IndexOutOfRangeException.cs
- ColumnTypeConverter.cs
- ObfuscationAttribute.cs
- webproxy.cs
- ExpressionConverter.cs
- TextCompositionManager.cs
- sqlpipe.cs
- Bitmap.cs
- SequentialUshortCollection.cs
- FacetChecker.cs
- StrokeIntersection.cs
- RenderData.cs
- DataGridViewCellFormattingEventArgs.cs
- SqlTypeConverter.cs
- ThicknessAnimation.cs
- ItemPager.cs
- SimpleBitVector32.cs
- ObjectDataSourceEventArgs.cs
- MouseBinding.cs
- OleDbReferenceCollection.cs
- CDSsyncETWBCLProvider.cs
- StrongNameIdentityPermission.cs
- Point3DCollection.cs
- Helper.cs
- TryExpression.cs
- AsymmetricAlgorithm.cs
- SoapAttributeOverrides.cs
- TableLayoutColumnStyleCollection.cs
- EncoderExceptionFallback.cs
- BuildProviderUtils.cs
- __FastResourceComparer.cs
- SourceFilter.cs
- securitymgrsite.cs
- DataGridAddNewRow.cs
- ProvideValueServiceProvider.cs
- BindingsCollection.cs
- FileStream.cs
- HTTPNotFoundHandler.cs
- LinqDataSourceContextData.cs
- Evidence.cs
- XomlCompilerResults.cs
- ASCIIEncoding.cs
- XmlIgnoreAttribute.cs
- ImageConverter.cs
- DetailsViewInsertedEventArgs.cs
- InternalConfigSettingsFactory.cs
- ZipIOCentralDirectoryBlock.cs
- PreparingEnlistment.cs
- PackagingUtilities.cs
- BlockUIContainer.cs
- TextEditorParagraphs.cs
- FillBehavior.cs
- SessionStateSection.cs
- RegexNode.cs
- CqlParser.cs