Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Controls / DataTemplateSelector.cs / 1 / DataTemplateSelector.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: DataTemplateSelector allows the app writer to provide custom template selection logic. // // Specs: [....]/coreui/Specs%20%20Property%20Engine/Styling%20Revisited.doc // //--------------------------------------------------------------------------- namespace System.Windows.Controls { ////// public class DataTemplateSelector { ////// DataTemplateSelector allows the app writer to provide custom template selection logic. /// For example, with a class Bug as the Content, /// use a particular template for Pri1 bugs and a different template for Pri2 bugs. ///
////// An application writer can override the SelectTemplate method in a derived /// selector class and assign an instance of this class to the ContentTemplateSelector property on ///
///class. /// /// Override this method to return an app specific /// The data content /// The element to which the template will be applied ///. /// an app-specific template to apply, or null. public virtual DataTemplate SelectTemplate(object item, DependencyObject container) { return null; } } } // 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
- DockPatternIdentifiers.cs
- recordstatefactory.cs
- SatelliteContractVersionAttribute.cs
- ElementMarkupObject.cs
- DataObject.cs
- ButtonFieldBase.cs
- StringPropertyBuilder.cs
- ItemsPresenter.cs
- ReadOnlyDictionary.cs
- DataGridViewTextBoxEditingControl.cs
- Zone.cs
- Label.cs
- StringFunctions.cs
- XmlSchemaComplexContentExtension.cs
- RoleGroup.cs
- itemelement.cs
- SafeNativeMethodsMilCoreApi.cs
- SystemShuttingDownException.cs
- HttpContextServiceHost.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- HttpRuntimeSection.cs
- UnsafeMethods.cs
- DataControlField.cs
- Hashtable.cs
- BooleanAnimationBase.cs
- DataGridItem.cs
- WebControlsSection.cs
- ServiceBuildProvider.cs
- CodeParameterDeclarationExpressionCollection.cs
- SelectedDatesCollection.cs
- Input.cs
- SystemParameters.cs
- StorageMappingItemLoader.cs
- RelativeSource.cs
- DataGridViewCellEventArgs.cs
- RuntimeWrappedException.cs
- GridViewRowPresenterBase.cs
- LifetimeServices.cs
- ContextMenu.cs
- ExtendedProtectionPolicyElement.cs
- ContextDataSourceContextData.cs
- BitmapEffectGroup.cs
- SoapParser.cs
- Emitter.cs
- AvTraceFormat.cs
- SqlExpressionNullability.cs
- MobileSysDescriptionAttribute.cs
- SeekableMessageNavigator.cs
- StyleCollection.cs
- ViewValidator.cs
- CopyOnWriteList.cs
- CompilerGeneratedAttribute.cs
- EntityDataSourceSelectingEventArgs.cs
- FixedTextView.cs
- ToolboxItemAttribute.cs
- BreakRecordTable.cs
- ContentPlaceHolder.cs
- SqlUnionizer.cs
- MappingItemCollection.cs
- EventHandlerList.cs
- XmlTextReader.cs
- DBCommand.cs
- LinkedDataMemberFieldEditor.cs
- DisposableCollectionWrapper.cs
- EnvelopedSignatureTransform.cs
- WeakReferenceEnumerator.cs
- FormViewInsertedEventArgs.cs
- GraphicsContext.cs
- InheritanceAttribute.cs
- HttpClientCertificate.cs
- VisualStyleRenderer.cs
- DrawTreeNodeEventArgs.cs
- DataGridItemEventArgs.cs
- ToolCreatedEventArgs.cs
- EventMappingSettingsCollection.cs
- CaseInsensitiveComparer.cs
- SoapConverter.cs
- OutputCacheProfile.cs
- DesignerAttributeInfo.cs
- RemotingService.cs
- ManifestResourceInfo.cs
- StringArrayConverter.cs
- SocketInformation.cs
- HtmlElement.cs
- GroupByExpressionRewriter.cs
- TextProperties.cs
- CriticalFinalizerObject.cs
- DoubleAnimationUsingKeyFrames.cs
- DocumentationServerProtocol.cs
- BinaryFormatterWriter.cs
- HMACRIPEMD160.cs
- MatrixAnimationBase.cs
- DataObject.cs
- DataGridToolTip.cs
- SelectionItemProviderWrapper.cs
- TextBoxAutomationPeer.cs
- AppDomainAttributes.cs
- InkPresenter.cs
- MergePropertyDescriptor.cs
- PropertyExpression.cs