Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ImageMetadata.cs
- DataListItemCollection.cs
- SerializationInfo.cs
- Regex.cs
- InfoCardArgumentException.cs
- followingsibling.cs
- DragEventArgs.cs
- CreateWorkflowOwnerCommand.cs
- Size.cs
- CheckBox.cs
- Point3DIndependentAnimationStorage.cs
- ObjectParameterCollection.cs
- ComponentCommands.cs
- VersionedStream.cs
- SelectorAutomationPeer.cs
- DynamicEndpointElement.cs
- BaseResourcesBuildProvider.cs
- GZipDecoder.cs
- DataColumn.cs
- Pkcs7Recipient.cs
- MulticastNotSupportedException.cs
- MergeFilterQuery.cs
- InputLangChangeRequestEvent.cs
- IPEndPoint.cs
- SmtpReplyReader.cs
- coordinatorfactory.cs
- GenerateScriptTypeAttribute.cs
- ConfigurationProperty.cs
- WindowsSecurityTokenAuthenticator.cs
- KeyNotFoundException.cs
- ByteBufferPool.cs
- Shape.cs
- DesignerForm.cs
- AppAction.cs
- WebPartUserCapability.cs
- Paragraph.cs
- WindowsHyperlink.cs
- EntityType.cs
- DetailsViewInsertEventArgs.cs
- XslUrlEditor.cs
- GroupBoxRenderer.cs
- DataStreams.cs
- HostingPreferredMapPath.cs
- ListBindingConverter.cs
- UserControlParser.cs
- XmlSchemaAttributeGroupRef.cs
- remotingproxy.cs
- StatusBar.cs
- EntityClassGenerator.cs
- HttpCapabilitiesEvaluator.cs
- ToolStripGrip.cs
- CqlGenerator.cs
- TableLayoutPanelBehavior.cs
- OletxTransactionHeader.cs
- ClientConvert.cs
- StaticResourceExtension.cs
- PerformanceCountersBase.cs
- ContentElement.cs
- ProfileManager.cs
- TypeCodeDomSerializer.cs
- ByteStream.cs
- SecureEnvironment.cs
- IgnoreFileBuildProvider.cs
- PlainXmlSerializer.cs
- FormViewDeletedEventArgs.cs
- ToolStripDropDownItem.cs
- WebPartEventArgs.cs
- Keywords.cs
- ToolStripSeparator.cs
- UTF32Encoding.cs
- KeyGestureValueSerializer.cs
- EmptyControlCollection.cs
- HtmlHistory.cs
- MimeParameter.cs
- ZipIOFileItemStream.cs
- KeyValueSerializer.cs
- ObjectTag.cs
- ObjectListFieldCollection.cs
- SmiEventStream.cs
- AppliedDeviceFiltersEditor.cs
- IRCollection.cs
- TypeUtil.cs
- AnchoredBlock.cs
- TraceInternal.cs
- SqlInternalConnection.cs
- ProfileModule.cs
- DataDocumentXPathNavigator.cs
- ApplicationBuildProvider.cs
- InvokePatternIdentifiers.cs
- HttpCachePolicyElement.cs
- CanExecuteRoutedEventArgs.cs
- TreeView.cs
- TextEditorLists.cs
- UnsafeNativeMethods.cs
- DiscoveryRequestHandler.cs
- EventLogInformation.cs
- SystemDropShadowChrome.cs
- DatePicker.cs
- DBNull.cs
- BitmapDecoder.cs