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
- NTAccount.cs
- DataGridViewTopLeftHeaderCell.cs
- DefaultMergeHelper.cs
- Timer.cs
- ClientTargetCollection.cs
- SemanticBasicElement.cs
- ContextProperty.cs
- DataGridViewHitTestInfo.cs
- UshortList2.cs
- precedingsibling.cs
- IndexerNameAttribute.cs
- CaseInsensitiveHashCodeProvider.cs
- Authorization.cs
- AccessControlEntry.cs
- WebPartZoneCollection.cs
- XPathEmptyIterator.cs
- Solver.cs
- SqlTypeConverter.cs
- DataGridSortCommandEventArgs.cs
- SqlServices.cs
- HttpConfigurationSystem.cs
- HttpServerVarsCollection.cs
- COM2Enum.cs
- DirectoryNotFoundException.cs
- CodeDOMUtility.cs
- Label.cs
- CfgParser.cs
- WebBaseEventKeyComparer.cs
- DataObjectPastingEventArgs.cs
- _ConnectStream.cs
- Int16Storage.cs
- RuntimeResourceSet.cs
- ContextMenuStripGroupCollection.cs
- WebPartDeleteVerb.cs
- ImageKeyConverter.cs
- TextRangeEditTables.cs
- recordstatefactory.cs
- ReferenceEqualityComparer.cs
- PropertyStore.cs
- LogLogRecordHeader.cs
- safelink.cs
- AffineTransform3D.cs
- FreezableOperations.cs
- DoWorkEventArgs.cs
- Message.cs
- RegisteredHiddenField.cs
- hresults.cs
- Atom10FormatterFactory.cs
- TextBoxBase.cs
- DataGridViewAdvancedBorderStyle.cs
- XsltException.cs
- Types.cs
- DataServiceHost.cs
- TileModeValidation.cs
- OneOfConst.cs
- DataView.cs
- EditCommandColumn.cs
- WebServiceParameterData.cs
- CollectionChangeEventArgs.cs
- QueuePropertyVariants.cs
- LoginView.cs
- Animatable.cs
- RouteParser.cs
- LogWriteRestartAreaAsyncResult.cs
- ToolTipAutomationPeer.cs
- ChineseLunisolarCalendar.cs
- NameNode.cs
- AuthenticatedStream.cs
- ScriptingRoleServiceSection.cs
- TypeConverterAttribute.cs
- Parsers.cs
- FormsAuthenticationModule.cs
- TextDocumentView.cs
- ComponentRenameEvent.cs
- WmlPanelAdapter.cs
- BrushConverter.cs
- DefaultProxySection.cs
- WebPartHelpVerb.cs
- DocumentSequenceHighlightLayer.cs
- ConstructorBuilder.cs
- BrowserCapabilitiesFactoryBase.cs
- DataSourceConverter.cs
- RuntimeCompatibilityAttribute.cs
- PropertyGridEditorPart.cs
- OutputScopeManager.cs
- CommandBindingCollection.cs
- HtmlTableRow.cs
- DataViewSettingCollection.cs
- DiscoveryClientDocuments.cs
- ValidationResult.cs
- WebPartTransformer.cs
- ClientTargetSection.cs
- TypeDependencyAttribute.cs
- TextEditorLists.cs
- Base64Decoder.cs
- XmlSchemaIdentityConstraint.cs
- Not.cs
- RangeValidator.cs
- SafeFileMappingHandle.cs
- ManipulationBoundaryFeedbackEventArgs.cs