Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / 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: http://avalon/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. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: DataTemplateSelector allows the app writer to provide custom template selection logic. // // Specs: http://avalon/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
- MapPathBasedVirtualPathProvider.cs
- ELinqQueryState.cs
- ProgramNode.cs
- DefaultObjectMappingItemCollection.cs
- LocalizationComments.cs
- MenuCommandsChangedEventArgs.cs
- WorkflowServiceOperationListItem.cs
- SelectionPattern.cs
- DataService.cs
- FtpRequestCacheValidator.cs
- Converter.cs
- ThicknessAnimation.cs
- MetadataPropertyAttribute.cs
- BufferedStream.cs
- DistributedTransactionPermission.cs
- XmlnsCompatibleWithAttribute.cs
- Style.cs
- FlowDocumentView.cs
- XmlTextWriter.cs
- Events.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- WindowsAuthenticationModule.cs
- SkinBuilder.cs
- SudsWriter.cs
- TaskCanceledException.cs
- BaseConfigurationRecord.cs
- StyleBamlRecordReader.cs
- PnrpPeerResolverBindingElement.cs
- SettingsSection.cs
- MasterPageParser.cs
- SplineKeyFrames.cs
- DataList.cs
- Pool.cs
- EllipseGeometry.cs
- SapiGrammar.cs
- SpotLight.cs
- ToolTip.cs
- SqlProfileProvider.cs
- DataSourceCacheDurationConverter.cs
- SafeTimerHandle.cs
- EntityDataReader.cs
- IListConverters.cs
- NamespaceMapping.cs
- _TLSstream.cs
- SoapAttributeOverrides.cs
- GB18030Encoding.cs
- UnaryQueryOperator.cs
- LineVisual.cs
- UntypedNullExpression.cs
- ClientSideProviderDescription.cs
- DataListItemCollection.cs
- NavigatingCancelEventArgs.cs
- XamlInt32CollectionSerializer.cs
- BindingContext.cs
- ContentValidator.cs
- complextypematerializer.cs
- WebReferencesBuildProvider.cs
- ToolStripMenuItem.cs
- SHA1.cs
- PerformanceCounterManager.cs
- XmlWrappingReader.cs
- SelectedCellsCollection.cs
- TabItemWrapperAutomationPeer.cs
- DelimitedListTraceListener.cs
- ModuleConfigurationInfo.cs
- HMACMD5.cs
- WinCategoryAttribute.cs
- ConnectionStringSettings.cs
- RSAOAEPKeyExchangeFormatter.cs
- Label.cs
- DiscoveryClientDuplexChannel.cs
- BuildDependencySet.cs
- NodeInfo.cs
- DrawingContextWalker.cs
- CompiledQuery.cs
- XmlDictionaryWriter.cs
- MdiWindowListStrip.cs
- AsymmetricSignatureFormatter.cs
- Boolean.cs
- BoundField.cs
- CompositeControl.cs
- HMACSHA512.cs
- PlanCompilerUtil.cs
- DataBindingCollection.cs
- OutputWindow.cs
- PerformanceCounter.cs
- DetailsViewInsertEventArgs.cs
- ReadOnlyObservableCollection.cs
- JsonEnumDataContract.cs
- SimpleHandlerFactory.cs
- ComponentResourceKeyConverter.cs
- Simplifier.cs
- ECDiffieHellmanCngPublicKey.cs
- ImportOptions.cs
- DataGridTextBox.cs
- NavigationCommands.cs
- SoapSchemaMember.cs
- GroupBoxAutomationPeer.cs
- XmlCharCheckingReader.cs
- TextSearch.cs