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
- Pkcs7Recipient.cs
- SqlDataSourceEnumerator.cs
- AdapterDictionary.cs
- WebScriptClientGenerator.cs
- DataMember.cs
- PropertyChangeTracker.cs
- PassportIdentity.cs
- ItemCheckedEvent.cs
- _NegoState.cs
- recordstatescratchpad.cs
- TreeNodeCollectionEditorDialog.cs
- DbConnectionHelper.cs
- HMACSHA256.cs
- Slider.cs
- DataListItemCollection.cs
- Column.cs
- ConfigurationManagerInternal.cs
- ObjectDataSourceStatusEventArgs.cs
- EngineSiteSapi.cs
- UIElementAutomationPeer.cs
- IndicFontClient.cs
- UserNameSecurityTokenParameters.cs
- WindowsListViewItem.cs
- SelectionProviderWrapper.cs
- OrderByQueryOptionExpression.cs
- ColorContextHelper.cs
- DrawingGroupDrawingContext.cs
- MediaElement.cs
- PropertyCollection.cs
- Point3DCollectionConverter.cs
- SqlDataSourceRefreshSchemaForm.cs
- DataPager.cs
- TextContainerHelper.cs
- NavigationPropertyEmitter.cs
- ToolStripDropTargetManager.cs
- ColumnMapTranslator.cs
- ConstNode.cs
- OperatorExpressions.cs
- CharAnimationUsingKeyFrames.cs
- SrgsNameValueTag.cs
- ObjectConverter.cs
- LambdaCompiler.Logical.cs
- StringAttributeCollection.cs
- DataGridCommandEventArgs.cs
- CommandEventArgs.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- Item.cs
- ListParagraph.cs
- TakeOrSkipQueryOperator.cs
- InputLanguageProfileNotifySink.cs
- UIHelper.cs
- Error.cs
- ListBoxAutomationPeer.cs
- EventHandlerList.cs
- TypeReference.cs
- OrderedDictionary.cs
- LayoutEvent.cs
- DetailsView.cs
- SoapExtensionTypeElement.cs
- JpegBitmapEncoder.cs
- ProgressChangedEventArgs.cs
- DocumentReference.cs
- LineSegment.cs
- PreviousTrackingServiceAttribute.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- ViewgenGatekeeper.cs
- FieldNameLookup.cs
- SmtpException.cs
- ErrorStyle.cs
- DataGridViewHitTestInfo.cs
- GeometryHitTestResult.cs
- LinqDataSourceValidationException.cs
- TypefaceMetricsCache.cs
- LinkArea.cs
- AxImporter.cs
- HttpProfileGroupBase.cs
- WebServiceData.cs
- RolePrincipal.cs
- Size.cs
- HtmlInputReset.cs
- ConfigurationLoader.cs
- ToolBarDesigner.cs
- SqlInternalConnectionSmi.cs
- CheckBox.cs
- SharedStatics.cs
- Helpers.cs
- UIElementHelper.cs
- RoutedEvent.cs
- SimpleHandlerFactory.cs
- AssociationSet.cs
- FixedFindEngine.cs
- DBCommand.cs
- LinqDataView.cs
- URL.cs
- UTF32Encoding.cs
- DialogResultConverter.cs
- SchemaDeclBase.cs
- KeyGesture.cs
- SqlNode.cs
- RichTextBox.cs