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
- Asn1Utilities.cs
- HttpsTransportBindingElement.cs
- ListViewItemCollectionEditor.cs
- ServiceBehaviorAttribute.cs
- SqlDataSourceSelectingEventArgs.cs
- PointLightBase.cs
- BlurBitmapEffect.cs
- BuilderInfo.cs
- PrintEvent.cs
- ParsedAttributeCollection.cs
- StateBag.cs
- FontClient.cs
- ExpressionBinding.cs
- DataGridColumnHeader.cs
- BufferAllocator.cs
- ToolStripTemplateNode.cs
- CodeArrayIndexerExpression.cs
- Helper.cs
- Rect3DConverter.cs
- EmbeddedMailObject.cs
- GACMembershipCondition.cs
- Int32AnimationUsingKeyFrames.cs
- ColorConvertedBitmap.cs
- MdImport.cs
- StylusPoint.cs
- MergeLocalizationDirectives.cs
- Wow64ConfigurationLoader.cs
- XPathAncestorQuery.cs
- ChildTable.cs
- CommandHelper.cs
- ZipIOExtraFieldElement.cs
- CatalogPartCollection.cs
- DESCryptoServiceProvider.cs
- QilFunction.cs
- ImageDesigner.cs
- ValidationPropertyAttribute.cs
- XmlTextAttribute.cs
- ScrollPatternIdentifiers.cs
- StatusBar.cs
- RowUpdatedEventArgs.cs
- NullableDoubleAverageAggregationOperator.cs
- SymbolType.cs
- PathParser.cs
- SQLUtility.cs
- xml.cs
- Parameter.cs
- AttributeEmitter.cs
- QueryInterceptorAttribute.cs
- WebPartTransformerAttribute.cs
- StyleBamlTreeBuilder.cs
- OverlappedAsyncResult.cs
- MobilePage.cs
- ReturnEventArgs.cs
- DocComment.cs
- DrawTreeNodeEventArgs.cs
- ExpressionBinding.cs
- MouseWheelEventArgs.cs
- XmlSchema.cs
- SeekableReadStream.cs
- PropertyEntry.cs
- ViewCellRelation.cs
- XmlComplianceUtil.cs
- Size.cs
- ObjectRef.cs
- ResourcesGenerator.cs
- DecimalStorage.cs
- ColumnTypeConverter.cs
- RuntimeHandles.cs
- AccessKeyManager.cs
- FrameworkContentElementAutomationPeer.cs
- IDQuery.cs
- UnsafeNativeMethods.cs
- HtmlTableCell.cs
- EditorAttribute.cs
- PageBreakRecord.cs
- DisplayMemberTemplateSelector.cs
- FieldToken.cs
- SQLInt64.cs
- InputBinding.cs
- ContentElementAutomationPeer.cs
- OrderByQueryOptionExpression.cs
- PostBackTrigger.cs
- ToolStripRendererSwitcher.cs
- FileEnumerator.cs
- ComAwareEventInfo.cs
- BitmapCacheBrush.cs
- GregorianCalendar.cs
- EncodingDataItem.cs
- HighlightVisual.cs
- WebPartActionVerb.cs
- WeakEventManager.cs
- GPPOINT.cs
- LassoSelectionBehavior.cs
- TriggerCollection.cs
- SmiTypedGetterSetter.cs
- Win32KeyboardDevice.cs
- DesignerAdapterUtil.cs
- BitFlagsGenerator.cs
- TextSchema.cs
- DateTimeUtil.cs