Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TdsParser.cs
- KoreanCalendar.cs
- SequentialOutput.cs
- HttpHeaderCollection.cs
- TdsValueSetter.cs
- XmlNavigatorFilter.cs
- PageThemeCodeDomTreeGenerator.cs
- SafeBitVector32.cs
- ScrollBarRenderer.cs
- EdmToObjectNamespaceMap.cs
- NamedObject.cs
- WrappedIUnknown.cs
- ListViewGroupCollectionEditor.cs
- HtmlTableRowCollection.cs
- WeakHashtable.cs
- HotSpot.cs
- XsltSettings.cs
- Claim.cs
- KoreanCalendar.cs
- ActiveDocumentEvent.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- ProfileSettingsCollection.cs
- XmlValidatingReaderImpl.cs
- HMACSHA1.cs
- WindowsIdentity.cs
- ZipIOLocalFileBlock.cs
- odbcmetadatacollectionnames.cs
- StreamWithDictionary.cs
- _NetworkingPerfCounters.cs
- WinEventHandler.cs
- Transform3D.cs
- RangeValidator.cs
- XsltInput.cs
- ToolStripHighContrastRenderer.cs
- TableProviderWrapper.cs
- SymbolEqualComparer.cs
- MULTI_QI.cs
- GeneralTransform3D.cs
- ReflectPropertyDescriptor.cs
- GridView.cs
- SchemaObjectWriter.cs
- StickyNoteContentControl.cs
- MessageQueuePermissionEntryCollection.cs
- AggregateException.cs
- NotifyInputEventArgs.cs
- SecureUICommand.cs
- DataGridViewComboBoxCell.cs
- XmlDownloadManager.cs
- TextCharacters.cs
- ViewEventArgs.cs
- EventDescriptor.cs
- CodeDomConfigurationHandler.cs
- Enum.cs
- RegionIterator.cs
- Animatable.cs
- SpoolingTaskBase.cs
- MetadataArtifactLoaderFile.cs
- SiteMapPathDesigner.cs
- SelectionRangeConverter.cs
- HWStack.cs
- ArgumentValue.cs
- BufferCache.cs
- PageCatalogPart.cs
- CaseInsensitiveHashCodeProvider.cs
- StatusBarPanelClickEvent.cs
- ExtendedProperty.cs
- ComponentEditorForm.cs
- ProxyElement.cs
- OutputCacheProfileCollection.cs
- DbSourceCommand.cs
- MetadataException.cs
- ColorInterpolationModeValidation.cs
- AmbientEnvironment.cs
- PairComparer.cs
- CheckBox.cs
- TypedTableBaseExtensions.cs
- NamedPipeWorkerProcess.cs
- FixedFindEngine.cs
- EnumValidator.cs
- SetterBaseCollection.cs
- TCEAdapterGenerator.cs
- XmlObjectSerializerReadContext.cs
- FontWeights.cs
- Compiler.cs
- QueryableFilterRepeater.cs
- GridViewUpdateEventArgs.cs
- SelectionRange.cs
- ExpandCollapseProviderWrapper.cs
- VectorAnimationBase.cs
- DataColumnMappingCollection.cs
- MissingSatelliteAssemblyException.cs
- Model3DGroup.cs
- TemplateBamlTreeBuilder.cs
- TemplateBuilder.cs
- BindableAttribute.cs
- SchemaImporterExtensionsSection.cs
- Line.cs
- DefaultAsyncDataDispatcher.cs
- ListControl.cs
- EntityContainerEmitter.cs