Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- login.cs
- SoapAttributeAttribute.cs
- AudioFormatConverter.cs
- CodeDomDesignerLoader.cs
- MetadataPropertyAttribute.cs
- DisplayMemberTemplateSelector.cs
- DummyDataSource.cs
- OpCellTreeNode.cs
- FontStretches.cs
- ByteStreamBufferedMessageData.cs
- DateTimeConverter2.cs
- ByteStorage.cs
- XmlName.cs
- ReliableSessionBindingElementImporter.cs
- FormViewDeletedEventArgs.cs
- EventPrivateKey.cs
- UnaryNode.cs
- TransformedBitmap.cs
- TransformPattern.cs
- XMLSchema.cs
- Converter.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- SpeechUI.cs
- MessageContractExporter.cs
- Dump.cs
- RadioButtonRenderer.cs
- TabRenderer.cs
- SchemaElementLookUpTableEnumerator.cs
- WorkflowApplicationIdleEventArgs.cs
- RunInstallerAttribute.cs
- UrlPath.cs
- RemotingSurrogateSelector.cs
- DTCTransactionManager.cs
- Button.cs
- XamlClipboardData.cs
- MailMessageEventArgs.cs
- TemplatedWizardStep.cs
- SynthesizerStateChangedEventArgs.cs
- TypeInitializationException.cs
- TextControlDesigner.cs
- ValidationHelper.cs
- SubtreeProcessor.cs
- Registry.cs
- TraceRecord.cs
- DataSpaceManager.cs
- CodeTypeParameterCollection.cs
- HtmlTableCell.cs
- AccessDataSource.cs
- RotationValidation.cs
- MarginCollapsingState.cs
- NavigationWindowAutomationPeer.cs
- PageBuildProvider.cs
- CommentAction.cs
- ConfigurationValidatorBase.cs
- AutoGeneratedFieldProperties.cs
- ProgramNode.cs
- List.cs
- XmlSerializerSection.cs
- StylusPlugin.cs
- BitmapFrameDecode.cs
- CommentEmitter.cs
- DbConnectionPoolIdentity.cs
- CompressedStack.cs
- ModelTypeConverter.cs
- CaseCqlBlock.cs
- DesigntimeLicenseContext.cs
- CacheMemory.cs
- XmlSerializerVersionAttribute.cs
- DataRowComparer.cs
- TransactionTable.cs
- SizeIndependentAnimationStorage.cs
- DBCommandBuilder.cs
- MailMessage.cs
- ListViewDeletedEventArgs.cs
- ObjectComplexPropertyMapping.cs
- XmlAnyElementAttribute.cs
- BitmapMetadataBlob.cs
- DataControlLinkButton.cs
- PropertyGrid.cs
- Path.cs
- AdapterDictionary.cs
- GeometryGroup.cs
- XMLDiffLoader.cs
- SystemIcmpV4Statistics.cs
- ServiceModelInstallComponent.cs
- ColumnReorderedEventArgs.cs
- SqlConnectionFactory.cs
- ServiceRouteHandler.cs
- MenuItem.cs
- TypeConverterHelper.cs
- SignatureDescription.cs
- BuildResult.cs
- ThreadStateException.cs
- AppearanceEditorPart.cs
- SqlUserDefinedTypeAttribute.cs
- SmtpCommands.cs
- CompModSwitches.cs
- DataControlPagerLinkButton.cs
- FixedPageAutomationPeer.cs
- TableCell.cs