Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- HtmlInputText.cs
- UnionCodeGroup.cs
- EntitySet.cs
- WaitForChangedResult.cs
- WinCategoryAttribute.cs
- FileLogRecordStream.cs
- PointConverter.cs
- WebServiceData.cs
- formatter.cs
- ReferencedAssembly.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- SourceInterpreter.cs
- BrushProxy.cs
- DrawingVisualDrawingContext.cs
- DataGridLengthConverter.cs
- PageStatePersister.cs
- control.ime.cs
- CryptoStream.cs
- SystemColorTracker.cs
- PlanCompiler.cs
- ExtendedProtectionPolicy.cs
- CodeBlockBuilder.cs
- DeobfuscatingStream.cs
- Misc.cs
- RequestTimeoutManager.cs
- WebPart.cs
- PerfProviderCollection.cs
- UpdatePanelControlTrigger.cs
- Canvas.cs
- PointKeyFrameCollection.cs
- GridViewSortEventArgs.cs
- WizardPanel.cs
- EncoderFallback.cs
- ParagraphVisual.cs
- Int64Animation.cs
- ExcludeFromCodeCoverageAttribute.cs
- SqlDataRecord.cs
- XamlRtfConverter.cs
- UnsafeNativeMethodsTablet.cs
- TextFormatter.cs
- sqlser.cs
- ProcessThread.cs
- OraclePermission.cs
- SourceSwitch.cs
- MetadataFile.cs
- ApplicationException.cs
- securitycriticaldataClass.cs
- InputProviderSite.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- CodeAttributeArgument.cs
- LinqDataSource.cs
- input.cs
- _HeaderInfo.cs
- ColumnBinding.cs
- WebPartZoneBase.cs
- TextFindEngine.cs
- ClassicBorderDecorator.cs
- DesignOnlyAttribute.cs
- ProcessHostServerConfig.cs
- NamespaceList.cs
- QueryContext.cs
- dataprotectionpermission.cs
- StringValidatorAttribute.cs
- SqlException.cs
- ResourcesBuildProvider.cs
- AuthenticationModulesSection.cs
- OutOfMemoryException.cs
- elementinformation.cs
- DataGridViewSelectedCellCollection.cs
- SizeF.cs
- Point4DConverter.cs
- RegexWorker.cs
- PhysicalAddress.cs
- DataServiceBuildProvider.cs
- StyleXamlTreeBuilder.cs
- SelectionUIService.cs
- LinearKeyFrames.cs
- MemberMaps.cs
- FormatException.cs
- MainMenu.cs
- SqlCacheDependency.cs
- XmlEntityReference.cs
- ResolveCompletedEventArgs.cs
- WebPartsSection.cs
- ClientRuntimeConfig.cs
- QilLiteral.cs
- FormatConvertedBitmap.cs
- CompositeTypefaceMetrics.cs
- HandledEventArgs.cs
- XmlSchemaAnyAttribute.cs
- PasswordTextContainer.cs
- TaiwanCalendar.cs
- DecimalAnimationBase.cs
- FixedElement.cs
- AvTraceFormat.cs
- GridViewPageEventArgs.cs
- Grant.cs
- FormsAuthenticationUserCollection.cs
- DataMemberListEditor.cs
- ProfileElement.cs