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
- path.cs
- BitmapEffectGeneralTransform.cs
- columnmapfactory.cs
- ManagedIStream.cs
- QueryConverter.cs
- AudioLevelUpdatedEventArgs.cs
- BookmarkUndoUnit.cs
- Vector3DValueSerializer.cs
- DataGridClipboardHelper.cs
- BaseDataList.cs
- Int32Collection.cs
- PropertyIDSet.cs
- EtwTrace.cs
- HwndSubclass.cs
- TearOffProxy.cs
- CorrelationHandle.cs
- SafeViewOfFileHandle.cs
- DataGridDesigner.cs
- FloaterBaseParagraph.cs
- ParamArrayAttribute.cs
- SystemIPv6InterfaceProperties.cs
- ContainerParagraph.cs
- RootCodeDomSerializer.cs
- TrackingStringDictionary.cs
- ConstructorNeedsTagAttribute.cs
- XsltException.cs
- LineBreakRecord.cs
- StrokeNodeOperations.cs
- ConnectionString.cs
- RequestContext.cs
- Duration.cs
- ExchangeUtilities.cs
- DbTypeMap.cs
- DataObjectSettingDataEventArgs.cs
- SqlColumnizer.cs
- CheckedListBox.cs
- DbQueryCommandTree.cs
- ScrollBarAutomationPeer.cs
- SetStoryboardSpeedRatio.cs
- Empty.cs
- ContainerUtilities.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- NamedPipeChannelFactory.cs
- UnsafeNativeMethods.cs
- DataRowView.cs
- StreamedWorkflowDefinitionContext.cs
- XamlReaderHelper.cs
- WebPartCatalogAddVerb.cs
- DbExpressionVisitor.cs
- CheckBoxBaseAdapter.cs
- State.cs
- SqlInternalConnection.cs
- AttributeData.cs
- TypeHelpers.cs
- _emptywebproxy.cs
- XamlBrushSerializer.cs
- TemplateXamlParser.cs
- TypefaceMap.cs
- Context.cs
- CalendarButton.cs
- WindowsPrincipal.cs
- DetailsViewUpdateEventArgs.cs
- PointF.cs
- InstanceNormalEvent.cs
- PageHandlerFactory.cs
- ISO2022Encoding.cs
- DetailsViewModeEventArgs.cs
- ReturnEventArgs.cs
- ReflectPropertyDescriptor.cs
- AuthenticationModuleElement.cs
- Clipboard.cs
- PeerNeighborManager.cs
- SqlBulkCopy.cs
- XsltFunctions.cs
- RoutedUICommand.cs
- ControlCodeDomSerializer.cs
- StylusPlugInCollection.cs
- FormsAuthenticationEventArgs.cs
- RawStylusInputCustomData.cs
- ImageInfo.cs
- TextParagraphProperties.cs
- IsolatedStorageFileStream.cs
- DispatcherHookEventArgs.cs
- HttpModuleAction.cs
- DispatcherProcessingDisabled.cs
- TextServicesLoader.cs
- EntityDataSourceDesigner.cs
- EditorZone.cs
- GenericParameterDataContract.cs
- GifBitmapEncoder.cs
- StringUtil.cs
- FixedSOMContainer.cs
- ClientConvert.cs
- SelfIssuedSamlTokenFactory.cs
- PenCursorManager.cs
- XamlSerializationHelper.cs
- loginstatus.cs
- _IPv6Address.cs
- ColumnMapCopier.cs
- AnnotationResourceChangedEventArgs.cs