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
- Pool.cs
- CommandEventArgs.cs
- ObjectItemCollection.cs
- ErrorReporting.cs
- designeractionbehavior.cs
- DbTransaction.cs
- XPathDocument.cs
- selecteditemcollection.cs
- XmlSchemaIdentityConstraint.cs
- Codec.cs
- Semaphore.cs
- OleDbConnectionInternal.cs
- ProbeDuplex11AsyncResult.cs
- RelationshipDetailsCollection.cs
- XmlHelper.cs
- UrlAuthFailedErrorFormatter.cs
- EFAssociationProvider.cs
- NativeMethods.cs
- SystemFonts.cs
- ExpressionBuilderContext.cs
- TraceHwndHost.cs
- SchemaType.cs
- AdornerLayer.cs
- AllowedAudienceUriElementCollection.cs
- ImageSourceConverter.cs
- EntityDataSourceReferenceGroup.cs
- DbFunctionCommandTree.cs
- NetSectionGroup.cs
- Point.cs
- ObjectNavigationPropertyMapping.cs
- PolyBezierSegment.cs
- EventLogTraceListener.cs
- TextUtf8RawTextWriter.cs
- RemotingException.cs
- FormViewPagerRow.cs
- FixedFindEngine.cs
- XmlSchemaInclude.cs
- DefaultTextStore.cs
- ExecutionContext.cs
- ControlBuilder.cs
- XmlSerializerFactory.cs
- SqlProcedureAttribute.cs
- IdentityNotMappedException.cs
- DropDownButton.cs
- HScrollProperties.cs
- MatrixAnimationUsingKeyFrames.cs
- XPathSelfQuery.cs
- DefinitionBase.cs
- Directory.cs
- AspNetSynchronizationContext.cs
- AppSettingsSection.cs
- NativeWrapper.cs
- AdditionalEntityFunctions.cs
- SoapAttributes.cs
- NullReferenceException.cs
- InstanceData.cs
- UserControlBuildProvider.cs
- HtmlInputCheckBox.cs
- WindowsFormsHostAutomationPeer.cs
- Set.cs
- XmlWellformedWriter.cs
- ContractAdapter.cs
- HttpListener.cs
- SapiAttributeParser.cs
- HealthMonitoringSection.cs
- ResourceCollectionInfo.cs
- CorrelationService.cs
- GridViewRow.cs
- HelpEvent.cs
- TextContainerChangeEventArgs.cs
- LocationSectionRecord.cs
- OleCmdHelper.cs
- securitymgrsite.cs
- WebServiceFaultDesigner.cs
- MenuStrip.cs
- GestureRecognizer.cs
- ThreadAttributes.cs
- ConfigurationLocationCollection.cs
- DialogWindow.cs
- DataGridColumn.cs
- DataSourceXmlClassAttribute.cs
- StrokeCollection.cs
- DebugView.cs
- DBPropSet.cs
- ContextMarshalException.cs
- TreeNodeBinding.cs
- UrlRoutingHandler.cs
- PersonalizationStateInfo.cs
- SqlConnectionHelper.cs
- SignalGate.cs
- DefaultTraceListener.cs
- PassportAuthentication.cs
- PrimitiveType.cs
- ListBoxAutomationPeer.cs
- WindowsBrush.cs
- MetaData.cs
- _NetworkingPerfCounters.cs
- DispatcherTimer.cs
- GrabHandleGlyph.cs
- DataGridViewImageCell.cs