Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- StrongName.cs
- parserscommon.cs
- CryptoStream.cs
- _PooledStream.cs
- HitTestFilterBehavior.cs
- StorageFunctionMapping.cs
- CodeDOMUtility.cs
- TableRow.cs
- EventProviderWriter.cs
- sqlstateclientmanager.cs
- BamlReader.cs
- SystemGatewayIPAddressInformation.cs
- OleServicesContext.cs
- PipelineDeploymentState.cs
- CollectionDataContract.cs
- CultureMapper.cs
- StrongTypingException.cs
- CharUnicodeInfo.cs
- DataGridViewImageColumn.cs
- XmlToDatasetMap.cs
- WebEncodingValidatorAttribute.cs
- TemplateEditingVerb.cs
- AsyncPostBackErrorEventArgs.cs
- DBCSCodePageEncoding.cs
- ReadOnlyHierarchicalDataSourceView.cs
- UnconditionalPolicy.cs
- VsPropertyGrid.cs
- LinkAreaEditor.cs
- FontResourceCache.cs
- DllNotFoundException.cs
- ActivityExecutionFilter.cs
- WinEventTracker.cs
- FontStretch.cs
- PersistStreamTypeWrapper.cs
- WeakReferenceEnumerator.cs
- DataMisalignedException.cs
- followingsibling.cs
- DashStyle.cs
- BindingSource.cs
- Tile.cs
- QualifiedCellIdBoolean.cs
- SiteMapHierarchicalDataSourceView.cs
- PropertyMappingExceptionEventArgs.cs
- MetadataUtil.cs
- OpacityConverter.cs
- DecimalStorage.cs
- QueryGenerator.cs
- Image.cs
- SchemaEntity.cs
- WorkflowViewElement.cs
- RsaSecurityTokenAuthenticator.cs
- CheckPair.cs
- XmlNodeChangedEventManager.cs
- ToolStripItemImageRenderEventArgs.cs
- XmlSerializerNamespaces.cs
- EntityStoreSchemaGenerator.cs
- PrintingPermissionAttribute.cs
- ConsumerConnectionPointCollection.cs
- WithParamAction.cs
- GeometryValueSerializer.cs
- QueryParameter.cs
- XmlAttributeProperties.cs
- HttpBufferlessInputStream.cs
- PropVariant.cs
- BridgeDataRecord.cs
- AdRotator.cs
- DataRelationCollection.cs
- MatrixConverter.cs
- DeclarativeCatalogPart.cs
- TraceSwitch.cs
- ComponentResourceKeyConverter.cs
- ResourceReader.cs
- _SpnDictionary.cs
- SchemaLookupTable.cs
- ErrorRuntimeConfig.cs
- SolidColorBrush.cs
- TreeViewItemAutomationPeer.cs
- RSAProtectedConfigurationProvider.cs
- ModelItemKeyValuePair.cs
- WebDisplayNameAttribute.cs
- SmtpAuthenticationManager.cs
- RegexParser.cs
- CommandDevice.cs
- ToolBar.cs
- UIElementHelper.cs
- ImageCollectionCodeDomSerializer.cs
- HtmlTable.cs
- TransformerConfigurationWizardBase.cs
- BitVector32.cs
- NamespaceTable.cs
- StrokeFIndices.cs
- QilStrConcatenator.cs
- GACIdentityPermission.cs
- CustomAttribute.cs
- StandardTransformFactory.cs
- ToolTip.cs
- FileRegion.cs
- ApplyTemplatesAction.cs
- BindingExpression.cs
- XmlSerializationGeneratedCode.cs