Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / TemplatePartAttribute.cs / 1305600 / 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
- BoolExpression.cs
- FilterInvalidBodyAccessException.cs
- HttpConfigurationContext.cs
- Encoder.cs
- TextContainerChangeEventArgs.cs
- KeySpline.cs
- LogicalTreeHelper.cs
- RuleInfoComparer.cs
- Point3DConverter.cs
- DataAccessor.cs
- Nodes.cs
- ToolStripGrip.cs
- DataGridViewCellStyleChangedEventArgs.cs
- HttpBrowserCapabilitiesBase.cs
- HyperLinkStyle.cs
- EventlogProvider.cs
- ButtonColumn.cs
- DynamicMethod.cs
- CodeBlockBuilder.cs
- TextStore.cs
- Comparer.cs
- Fx.cs
- APCustomTypeDescriptor.cs
- TableLayoutSettings.cs
- BitmapMetadataBlob.cs
- Region.cs
- VisualTransition.cs
- KeyValuePairs.cs
- FileRecordSequence.cs
- UnaryNode.cs
- NonClientArea.cs
- MatchSingleFxEngineOpcode.cs
- StrokeDescriptor.cs
- GridSplitter.cs
- SocketException.cs
- StorageEntityTypeMapping.cs
- ResourceKey.cs
- TracingConnection.cs
- WebContext.cs
- ToolStripTemplateNode.cs
- SimpleHandlerBuildProvider.cs
- CuspData.cs
- NativeRecognizer.cs
- BooleanFacetDescriptionElement.cs
- ObjectConverter.cs
- ExtentJoinTreeNode.cs
- ApplicationCommands.cs
- PropertyChangedEventArgs.cs
- HttpModuleAction.cs
- _NestedSingleAsyncResult.cs
- DelegateArgument.cs
- EnumValAlphaComparer.cs
- PerformanceCounterCategory.cs
- HtmlImage.cs
- SQLInt32.cs
- SortedList.cs
- Validator.cs
- XmlCharacterData.cs
- precedingsibling.cs
- SourceFileInfo.cs
- ToolStripHighContrastRenderer.cs
- ErrorHandlerModule.cs
- SecureStringHasher.cs
- OrderingQueryOperator.cs
- BaseEntityWrapper.cs
- BrowserCapabilitiesCompiler.cs
- MailMessage.cs
- WorkflowLayouts.cs
- TemplateComponentConnector.cs
- SessionSwitchEventArgs.cs
- BitStack.cs
- ContentValidator.cs
- ConsoleCancelEventArgs.cs
- XmlProcessingInstruction.cs
- QuotedPrintableStream.cs
- ExtenderProvidedPropertyAttribute.cs
- DataServiceConfiguration.cs
- StreamHelper.cs
- DeviceSpecificDialogCachedState.cs
- EntitySet.cs
- ItemMap.cs
- RegexInterpreter.cs
- SurrogateEncoder.cs
- SqlDataSourceConfigureFilterForm.cs
- BamlLocalizer.cs
- WindowsPen.cs
- DataGridViewCellConverter.cs
- ExpressionBinding.cs
- UpdateManifestForBrowserApplication.cs
- CapacityStreamGeometryContext.cs
- DynamicScriptObject.cs
- EventMap.cs
- XmlHierarchyData.cs
- PropertyTab.cs
- HttpDebugHandler.cs
- KeyValueConfigurationElement.cs
- OperationCanceledException.cs
- ErrorRuntimeConfig.cs
- TransformGroup.cs
- ServiceBusyException.cs