Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StackSpiller.Temps.cs
- ComponentDispatcherThread.cs
- MailBnfHelper.cs
- DiscardableAttribute.cs
- Operand.cs
- XmlEnumAttribute.cs
- DataServiceRequestOfT.cs
- OutputCacheSettings.cs
- DataControlFieldCell.cs
- ObjectStateManager.cs
- LogSwitch.cs
- HttpListenerException.cs
- SafeHandles.cs
- InfoCardSymmetricCrypto.cs
- CookielessHelper.cs
- Screen.cs
- ToRequest.cs
- MessageDispatch.cs
- IListConverters.cs
- EntityCodeGenerator.cs
- EffectiveValueEntry.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- ContextMarshalException.cs
- ClientSideProviderDescription.cs
- SerialPinChanges.cs
- DiscreteKeyFrames.cs
- IDispatchConstantAttribute.cs
- FlowNode.cs
- WebBrowserNavigatedEventHandler.cs
- PopupEventArgs.cs
- AddInStore.cs
- TextProperties.cs
- CharConverter.cs
- SolidColorBrush.cs
- DelimitedListTraceListener.cs
- HTMLTextWriter.cs
- RegionInfo.cs
- FileInfo.cs
- SystemIPGlobalProperties.cs
- EventData.cs
- DispatchChannelSink.cs
- Types.cs
- EventLogPermissionEntry.cs
- Char.cs
- XmlDataSourceView.cs
- ForeignConstraint.cs
- RepeaterItemCollection.cs
- DataFieldCollectionEditor.cs
- SimpleApplicationHost.cs
- ArrayWithOffset.cs
- DataSourceGroupCollection.cs
- ExtensionDataReader.cs
- SpecialFolderEnumConverter.cs
- InputDevice.cs
- WindowInteropHelper.cs
- WmlTextBoxAdapter.cs
- ObjectListCommandEventArgs.cs
- WebControlParameterProxy.cs
- QilInvoke.cs
- DataGridViewLinkCell.cs
- ListBox.cs
- HyperLink.cs
- SHA256Cng.cs
- DataContractFormatAttribute.cs
- ServiceDescriptionData.cs
- TextSearch.cs
- NativeRightsManagementAPIsStructures.cs
- VideoDrawing.cs
- SqlConnectionHelper.cs
- DoubleAnimation.cs
- AsyncPostBackErrorEventArgs.cs
- HierarchicalDataBoundControl.cs
- MemoryFailPoint.cs
- TypeInfo.cs
- StringUtil.cs
- StrongNameKeyPair.cs
- ProgressBarAutomationPeer.cs
- XamlWriter.cs
- SettingsBindableAttribute.cs
- CollectionViewGroup.cs
- DefaultAssemblyResolver.cs
- ExtentKey.cs
- DataFormats.cs
- ButtonRenderer.cs
- DataGridColumnEventArgs.cs
- TargetException.cs
- BufferedResponseStream.cs
- Rule.cs
- PackWebRequest.cs
- SelectionManager.cs
- EnumDataContract.cs
- DataGridViewComboBoxEditingControl.cs
- Selector.cs
- RepeaterCommandEventArgs.cs
- MetadataPropertyCollection.cs
- EpmAttributeNameBuilder.cs
- FileEnumerator.cs
- SQLInt16Storage.cs
- EventHandlersStore.cs
- XmlSchemas.cs