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
- Timer.cs
- IsolatedStorageFilePermission.cs
- SubclassTypeValidatorAttribute.cs
- Constant.cs
- SignatureToken.cs
- EventLogPermissionAttribute.cs
- EllipticalNodeOperations.cs
- SHA256Managed.cs
- BitmapMetadataBlob.cs
- TypeSystem.cs
- XsdCachingReader.cs
- OutputCacheSection.cs
- RootDesignerSerializerAttribute.cs
- ElementFactory.cs
- PropertyStore.cs
- TextFindEngine.cs
- DataRow.cs
- Track.cs
- SetterBaseCollection.cs
- Wildcard.cs
- FixedSchema.cs
- ObjectDisposedException.cs
- EventRecordWrittenEventArgs.cs
- ToolStripPanelDesigner.cs
- PeerInputChannelListener.cs
- SvcFileManager.cs
- RuntimeHandles.cs
- RectangleF.cs
- JsonObjectDataContract.cs
- input.cs
- StyleTypedPropertyAttribute.cs
- SmiXetterAccessMap.cs
- BrowserCapabilitiesCompiler.cs
- Base64Decoder.cs
- XmlException.cs
- SafeCryptContextHandle.cs
- SystemWebExtensionsSectionGroup.cs
- EndpointConfigContainer.cs
- MeshGeometry3D.cs
- RegexStringValidatorAttribute.cs
- UnsafeNetInfoNativeMethods.cs
- ProfessionalColorTable.cs
- Model3D.cs
- StoreContentChangedEventArgs.cs
- ObjectDataSourceMethodEditor.cs
- ValueExpressions.cs
- HttpCapabilitiesEvaluator.cs
- MenuBase.cs
- IxmlLineInfo.cs
- XmlSequenceWriter.cs
- ArrangedElement.cs
- ReflectionUtil.cs
- TraceHwndHost.cs
- HWStack.cs
- OperationInfoBase.cs
- ScaleTransform3D.cs
- IPipelineRuntime.cs
- ComponentCommands.cs
- SymbolDocumentGenerator.cs
- DispatcherExceptionFilterEventArgs.cs
- MimeParameters.cs
- ConfigurationManagerInternal.cs
- CustomAttributeSerializer.cs
- ControlParameter.cs
- sqlpipe.cs
- ThumbButtonInfo.cs
- DetailsViewUpdateEventArgs.cs
- HtmlMeta.cs
- MenuAdapter.cs
- InputDevice.cs
- StaticTextPointer.cs
- TextTreePropertyUndoUnit.cs
- AddInBase.cs
- PeerToPeerException.cs
- FileLevelControlBuilderAttribute.cs
- MessageQueueAccessControlEntry.cs
- TypeDefinition.cs
- GuidelineCollection.cs
- DocumentReference.cs
- DLinqAssociationProvider.cs
- SimpleTextLine.cs
- MeshGeometry3D.cs
- DependencyObjectPropertyDescriptor.cs
- ListViewItemSelectionChangedEvent.cs
- GeometryModel3D.cs
- ViewRendering.cs
- InstanceKeyCompleteException.cs
- TreeBuilderXamlTranslator.cs
- TableLayoutPanelCellPosition.cs
- DeobfuscatingStream.cs
- PeerNameResolver.cs
- BitmapEffectCollection.cs
- FileUtil.cs
- XmlConvert.cs
- DBSqlParserColumnCollection.cs
- SqlGenericUtil.cs
- mediaeventargs.cs
- ProcessProtocolHandler.cs
- UDPClient.cs
- ValidationEventArgs.cs