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
- DataGridViewColumnConverter.cs
- FixedTextPointer.cs
- ValidationError.cs
- BulletedList.cs
- TimeStampChecker.cs
- SQLDateTime.cs
- GeometryHitTestParameters.cs
- ChunkedMemoryStream.cs
- _SslStream.cs
- FeatureSupport.cs
- MenuCommand.cs
- ResourceCodeDomSerializer.cs
- WsrmMessageInfo.cs
- elementinformation.cs
- StickyNoteAnnotations.cs
- XmlSchemaValidator.cs
- Compiler.cs
- TextSelectionHelper.cs
- PartialList.cs
- ObjectListFieldCollection.cs
- ProjectedSlot.cs
- ControlParameter.cs
- ServiceModelStringsVersion1.cs
- CodeGeneratorOptions.cs
- EntityDataSourceChangingEventArgs.cs
- Table.cs
- FormatterServicesNoSerializableCheck.cs
- Interlocked.cs
- DummyDataSource.cs
- UnorderedHashRepartitionStream.cs
- FontSourceCollection.cs
- QilTargetType.cs
- BounceEase.cs
- StreamingContext.cs
- FieldNameLookup.cs
- Argument.cs
- BrowserCapabilitiesFactory35.cs
- UpDownEvent.cs
- updatecommandorderer.cs
- HtmlSelect.cs
- DefaultCompensation.cs
- TextProviderWrapper.cs
- EmptyQuery.cs
- MachineKeyConverter.cs
- DataGridViewCellParsingEventArgs.cs
- PostBackTrigger.cs
- CustomWebEventKey.cs
- UserControlCodeDomTreeGenerator.cs
- XmlStringTable.cs
- SyntaxCheck.cs
- RichTextBox.cs
- XmlMapping.cs
- HttpEncoderUtility.cs
- CompiledIdentityConstraint.cs
- BrowserTree.cs
- ClientUrlResolverWrapper.cs
- PartManifestEntry.cs
- CompilerWrapper.cs
- SharedStatics.cs
- ReadOnlyObservableCollection.cs
- Vector3D.cs
- BCryptNative.cs
- RequestBringIntoViewEventArgs.cs
- WasHttpModulesInstallComponent.cs
- TextServicesManager.cs
- User.cs
- DispatchWrapper.cs
- ProviderException.cs
- NameValueConfigurationCollection.cs
- EditorPartCollection.cs
- Bidi.cs
- ConfigXmlElement.cs
- DbFunctionCommandTree.cs
- JoinGraph.cs
- Cursors.cs
- AssemblyHelper.cs
- NetPipeSection.cs
- SqlCachedBuffer.cs
- OleDbConnection.cs
- FtpCachePolicyElement.cs
- ScaleTransform.cs
- UInt16.cs
- __ConsoleStream.cs
- PasswordBoxAutomationPeer.cs
- SplineQuaternionKeyFrame.cs
- TreeViewItemAutomationPeer.cs
- WindowsAuthenticationModule.cs
- IFlowDocumentViewer.cs
- WhitespaceReader.cs
- BaseResourcesBuildProvider.cs
- XmlLoader.cs
- IDQuery.cs
- Button.cs
- Pkcs7Signer.cs
- SmiSettersStream.cs
- GraphicsState.cs
- CheckBoxStandardAdapter.cs
- RecordsAffectedEventArgs.cs
- TableLayoutPanelCodeDomSerializer.cs
- ObjectViewListener.cs