Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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: [....]/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
- ObjectConverter.cs
- TextTrailingCharacterEllipsis.cs
- CapabilitiesUse.cs
- XsdDuration.cs
- PolyLineSegment.cs
- mongolianshape.cs
- XmlSchemaValidator.cs
- SettingsContext.cs
- UIPermission.cs
- _Win32.cs
- SystemFonts.cs
- FixUpCollection.cs
- PageSettings.cs
- Style.cs
- DataIdProcessor.cs
- ProviderManager.cs
- OutputCacheSettingsSection.cs
- ConfigurationException.cs
- CodeVariableDeclarationStatement.cs
- RichTextBoxAutomationPeer.cs
- IdnMapping.cs
- FlowDocumentReaderAutomationPeer.cs
- RuntimeEnvironment.cs
- ChangePassword.cs
- DashStyle.cs
- TypeHelpers.cs
- EventProviderWriter.cs
- WCFServiceClientProxyGenerator.cs
- GridViewUpdateEventArgs.cs
- CodeMemberMethod.cs
- MimePart.cs
- LabelDesigner.cs
- CommandBinding.cs
- WebPart.cs
- HandlerMappingMemo.cs
- ListCollectionView.cs
- ConstraintStruct.cs
- ImageField.cs
- ControlValuePropertyAttribute.cs
- WindowsAuthenticationModule.cs
- ViewStateException.cs
- SimpleType.cs
- SystemIPAddressInformation.cs
- MenuItemStyleCollection.cs
- XhtmlBasicLinkAdapter.cs
- ControlOperationInvoker.cs
- coordinator.cs
- SQLDateTimeStorage.cs
- UriScheme.cs
- DataServiceKeyAttribute.cs
- SqlXml.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- TextDecorationCollection.cs
- MaskInputRejectedEventArgs.cs
- SmiRecordBuffer.cs
- DesignerDataParameter.cs
- Restrictions.cs
- InProcStateClientManager.cs
- Effect.cs
- WindowsScroll.cs
- RoutedEventValueSerializer.cs
- MimeAnyImporter.cs
- COSERVERINFO.cs
- RoleManagerModule.cs
- ClaimSet.cs
- CookieHandler.cs
- DockPattern.cs
- FilterQuery.cs
- Adorner.cs
- DocumentGridContextMenu.cs
- IDQuery.cs
- HtmlTableRow.cs
- NativeMethods.cs
- StatusBarDesigner.cs
- BamlLocalizabilityResolver.cs
- PlainXmlSerializer.cs
- DBParameter.cs
- BulletedListEventArgs.cs
- HiddenFieldPageStatePersister.cs
- AssemblyCache.cs
- Exceptions.cs
- SQLByteStorage.cs
- XmlSchemaNotation.cs
- SignatureToken.cs
- SafeMILHandle.cs
- Label.cs
- ILGenerator.cs
- AlignmentYValidation.cs
- xsdvalidator.cs
- XMLSchema.cs
- CodeCommentStatementCollection.cs
- ToolStripContainer.cs
- FusionWrap.cs
- VisualProxy.cs
- WebControlAdapter.cs
- Literal.cs
- XmlSchemaExternal.cs
- ProtocolsConfiguration.cs
- Calendar.cs
- DataServiceRequestOfT.cs