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
- ScriptBehaviorDescriptor.cs
- OracleBFile.cs
- DateTimePicker.cs
- TimeSpanMinutesConverter.cs
- Group.cs
- WebCategoryAttribute.cs
- ArrayConverter.cs
- DropTarget.cs
- InfoCardClaimCollection.cs
- UniqueIdentifierService.cs
- ApplicationCommands.cs
- BinaryFormatter.cs
- ServicePointManager.cs
- ContactManager.cs
- KeyProperty.cs
- DiscoveryUtility.cs
- Vector3DIndependentAnimationStorage.cs
- BitmapEffectvisualstate.cs
- StyleModeStack.cs
- ComplexTypeEmitter.cs
- PropertyPathWorker.cs
- WaitHandle.cs
- _DynamicWinsockMethods.cs
- BitmapSourceSafeMILHandle.cs
- ObjectParameter.cs
- ResolveNameEventArgs.cs
- SqlDataSourceView.cs
- MemberNameValidator.cs
- VerificationAttribute.cs
- UnmanagedMemoryStream.cs
- HorizontalAlignConverter.cs
- DataSetViewSchema.cs
- CompositeControlDesigner.cs
- ColorDialog.cs
- AudioFormatConverter.cs
- ImageCodecInfo.cs
- PriorityRange.cs
- DayRenderEvent.cs
- CSharpCodeProvider.cs
- FormattedText.cs
- UriSection.cs
- IIS7WorkerRequest.cs
- BrowserCapabilitiesCompiler.cs
- HttpResponseHeader.cs
- Debug.cs
- SpeechUI.cs
- DataGridViewComboBoxColumn.cs
- TextInfo.cs
- RotateTransform3D.cs
- NativeMethods.cs
- FtpCachePolicyElement.cs
- ColorDialog.cs
- SessionPageStatePersister.cs
- DesignerActionVerbItem.cs
- PeerPresenceInfo.cs
- BitmapScalingModeValidation.cs
- Base64Stream.cs
- ServiceReference.cs
- HuffmanTree.cs
- RootBrowserWindowAutomationPeer.cs
- ByteAnimationUsingKeyFrames.cs
- CurrentChangedEventManager.cs
- StructuredTypeInfo.cs
- DesignerVerb.cs
- ThreadStartException.cs
- _SSPISessionCache.cs
- MetadataArtifactLoaderResource.cs
- Socket.cs
- MultiBindingExpression.cs
- ContractMethodParameterInfo.cs
- TypeBuilderInstantiation.cs
- XmlIlTypeHelper.cs
- MetaType.cs
- CalendarDay.cs
- XpsS0ValidatingLoader.cs
- TextOnlyOutput.cs
- HttpPostProtocolReflector.cs
- TemplateXamlParser.cs
- ResolveNameEventArgs.cs
- SiteOfOriginContainer.cs
- RewritingValidator.cs
- ListViewPagedDataSource.cs
- LocalTransaction.cs
- GeneralTransform2DTo3DTo2D.cs
- CompressedStack.cs
- TranslateTransform.cs
- LingerOption.cs
- InfoCardProofToken.cs
- TriggerActionCollection.cs
- Application.cs
- OdbcFactory.cs
- PreservationFileWriter.cs
- XmlSequenceWriter.cs
- SwitchLevelAttribute.cs
- RadioButtonStandardAdapter.cs
- RegexCompilationInfo.cs
- Operand.cs
- StructuredProperty.cs
- ContextMenuStrip.cs
- _KerberosClient.cs