Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / DataTemplateSelector.cs / 1305600 / 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
- DataControlFieldCell.cs
- TransformerInfo.cs
- UriParserTemplates.cs
- GACMembershipCondition.cs
- PipelineModuleStepContainer.cs
- ImagingCache.cs
- ConnectionStringsExpressionBuilder.cs
- SspiNegotiationTokenProvider.cs
- InputLangChangeEvent.cs
- XsltLibrary.cs
- CompositeControl.cs
- ListenerUnsafeNativeMethods.cs
- TextAdaptor.cs
- Pts.cs
- StructuredType.cs
- MessageSecurityVersion.cs
- EdmToObjectNamespaceMap.cs
- TemplateLookupAction.cs
- EventTrigger.cs
- StoreUtilities.cs
- Lease.cs
- PointF.cs
- PeerCollaborationPermission.cs
- DataGridViewCellCancelEventArgs.cs
- ImageConverter.cs
- FieldTemplateUserControl.cs
- X509CertificateCollection.cs
- ImageCollectionCodeDomSerializer.cs
- _NTAuthentication.cs
- GradientStop.cs
- OleDbEnumerator.cs
- SystemIPInterfaceProperties.cs
- StandardCommands.cs
- MouseGestureValueSerializer.cs
- WebPartCancelEventArgs.cs
- GuidTagList.cs
- NameTable.cs
- KoreanCalendar.cs
- CodeAttributeArgumentCollection.cs
- CompiledScopeCriteria.cs
- ComponentChangedEvent.cs
- Message.cs
- LocalizableAttribute.cs
- CodeLabeledStatement.cs
- PropertyInfoSet.cs
- Compiler.cs
- WebPartManagerInternals.cs
- RangeValueProviderWrapper.cs
- DataGridViewCellCollection.cs
- KoreanCalendar.cs
- SecurityElement.cs
- InputBindingCollection.cs
- XamlPointCollectionSerializer.cs
- SQLString.cs
- TransactionFlowAttribute.cs
- TerminateWorkflow.cs
- PipelineModuleStepContainer.cs
- DataSourceControl.cs
- CustomWebEventKey.cs
- ColumnPropertiesGroup.cs
- CompatibleComparer.cs
- DefaultValueAttribute.cs
- Registry.cs
- DelimitedListTraceListener.cs
- SessionStateUtil.cs
- HtmlTableCell.cs
- PropertyGridCommands.cs
- OraclePermission.cs
- ScrollBarAutomationPeer.cs
- SessionPageStatePersister.cs
- WindowsFont.cs
- PersonalizablePropertyEntry.cs
- TreeViewDesigner.cs
- DataSourceProvider.cs
- SchemaImporter.cs
- FrameSecurityDescriptor.cs
- TreeNodeBindingCollection.cs
- QuadraticEase.cs
- ApplicationContext.cs
- MD5.cs
- PartitionResolver.cs
- AdapterUtil.cs
- StateManagedCollection.cs
- BuildDependencySet.cs
- DebugView.cs
- ListViewItemMouseHoverEvent.cs
- PackageDigitalSignature.cs
- OleStrCAMarshaler.cs
- StretchValidation.cs
- ToolStripContainerActionList.cs
- XmlArrayItemAttribute.cs
- HealthMonitoringSection.cs
- safex509handles.cs
- BaseEntityWrapper.cs
- VarInfo.cs
- MailMessageEventArgs.cs
- SubtreeProcessor.cs
- SerialStream.cs
- x509store.cs
- MSAAEventDispatcher.cs