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
- RevocationPoint.cs
- COM2Enum.cs
- MediaTimeline.cs
- NamedPipeAppDomainProtocolHandler.cs
- FunctionQuery.cs
- InvalidComObjectException.cs
- WeakReference.cs
- GeneralTransform3DTo2DTo3D.cs
- CacheOutputQuery.cs
- XmlDocumentSchema.cs
- SmtpAuthenticationManager.cs
- WebPartTransformerCollection.cs
- RequestQueryProcessor.cs
- TraceHwndHost.cs
- StringUtil.cs
- DataGridViewIntLinkedList.cs
- DPCustomTypeDescriptor.cs
- QueryResponse.cs
- RsaKeyIdentifierClause.cs
- BuildDependencySet.cs
- ThrowHelper.cs
- TrackingServices.cs
- Triangle.cs
- SemaphoreSecurity.cs
- NavigationHelper.cs
- DataGridColumnHeaderCollection.cs
- DataGridViewColumnHeaderCell.cs
- SqlBuffer.cs
- MultipleFilterMatchesException.cs
- CollectionChangedEventManager.cs
- SmiGettersStream.cs
- GenerateScriptTypeAttribute.cs
- WebControlParameterProxy.cs
- TransactionInformation.cs
- HostedImpersonationContext.cs
- CodeLabeledStatement.cs
- ReadWriteObjectLock.cs
- GenericQueueSurrogate.cs
- DynamicResourceExtensionConverter.cs
- WindowsRichEdit.cs
- ReflectionServiceProvider.cs
- BaseHashHelper.cs
- IntersectQueryOperator.cs
- DataListItemEventArgs.cs
- HtmlDocument.cs
- OdbcConnection.cs
- LinqDataSourceInsertEventArgs.cs
- CodeDelegateInvokeExpression.cs
- TraceFilter.cs
- RecordConverter.cs
- ContainerVisual.cs
- EntityProviderServices.cs
- Point3DCollectionValueSerializer.cs
- TextAnchor.cs
- OleDbDataAdapter.cs
- DefaultEventAttribute.cs
- BlobPersonalizationState.cs
- ActivityXamlServices.cs
- VisualStateGroup.cs
- BitVector32.cs
- DependencyPropertyValueSerializer.cs
- DbParameterCollectionHelper.cs
- TTSEngineTypes.cs
- CompilationSection.cs
- DataGridHeaderBorder.cs
- StyleHelper.cs
- CredentialCache.cs
- MenuItemStyle.cs
- EllipseGeometry.cs
- ManagementInstaller.cs
- GroupPartitionExpr.cs
- CheckableControlBaseAdapter.cs
- SqlDataAdapter.cs
- BinaryObjectReader.cs
- EntityDataReader.cs
- DataGridViewTopLeftHeaderCell.cs
- diagnosticsswitches.cs
- EdmSchemaAttribute.cs
- FullTextBreakpoint.cs
- SafeEventHandle.cs
- FloaterBaseParaClient.cs
- StrokeNodeData.cs
- RtType.cs
- TogglePatternIdentifiers.cs
- XmlSchemaInfo.cs
- XmlSchemaComplexContentExtension.cs
- XslTransform.cs
- TabPage.cs
- EnumValidator.cs
- FieldAccessException.cs
- ObjectListCommandsPage.cs
- XsdValidatingReader.cs
- UserControlAutomationPeer.cs
- ApplicationDirectoryMembershipCondition.cs
- TreeNode.cs
- EventProviderBase.cs
- BasicHttpBindingCollectionElement.cs
- SymbolPair.cs
- GenericTypeParameterBuilder.cs
- XmlChildNodes.cs