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
- Sql8ExpressionRewriter.cs
- StrongNameUtility.cs
- DatatypeImplementation.cs
- CompilerError.cs
- SamlConstants.cs
- GenericEnumConverter.cs
- IsolationInterop.cs
- DbCommandDefinition.cs
- EmptyTextWriter.cs
- PostBackTrigger.cs
- XmlTextEncoder.cs
- PolyLineSegment.cs
- ReturnType.cs
- ServiceHandle.cs
- EventSourceCreationData.cs
- Int16Animation.cs
- TypeUsage.cs
- MessageQueueConverter.cs
- FusionWrap.cs
- TraceUtility.cs
- ToolZone.cs
- ValidatorCompatibilityHelper.cs
- TCPClient.cs
- EventSetter.cs
- AsymmetricKeyExchangeDeformatter.cs
- QuestionEventArgs.cs
- FixedTextBuilder.cs
- Event.cs
- MouseEvent.cs
- ObjectAnimationUsingKeyFrames.cs
- WebBrowserSiteBase.cs
- Comparer.cs
- RankException.cs
- CompleteWizardStep.cs
- MutexSecurity.cs
- AnnotationService.cs
- tooltip.cs
- SafeFindHandle.cs
- VirtualizingPanel.cs
- UnaryNode.cs
- UInt32Storage.cs
- EventLogWatcher.cs
- XmlStrings.cs
- IsolatedStorageFile.cs
- ToolStripDropDown.cs
- DllNotFoundException.cs
- WmlValidationSummaryAdapter.cs
- NotCondition.cs
- CryptoStream.cs
- DesignTimeTemplateParser.cs
- DataGridCellInfo.cs
- ContractReference.cs
- ImageConverter.cs
- BooleanFunctions.cs
- TextBoxView.cs
- InvalidProgramException.cs
- __ComObject.cs
- Selection.cs
- XmlNodeChangedEventArgs.cs
- Tokenizer.cs
- ClientSession.cs
- ColorConvertedBitmap.cs
- login.cs
- log.cs
- IERequestCache.cs
- RadioButtonStandardAdapter.cs
- PropertyGridView.cs
- TableDetailsCollection.cs
- WebPartCollection.cs
- TargetConverter.cs
- WebPartDisplayModeEventArgs.cs
- Component.cs
- XamlToRtfWriter.cs
- SerialPinChanges.cs
- HttpMethodConstraint.cs
- BrowserDefinitionCollection.cs
- ToolStripTemplateNode.cs
- ValidateNames.cs
- HttpServerChannel.cs
- XmlUtil.cs
- HttpModulesSection.cs
- XmlSchemaException.cs
- ProcessHostFactoryHelper.cs
- CachedPathData.cs
- VirtualizedItemProviderWrapper.cs
- BuildResultCache.cs
- ApplicationBuildProvider.cs
- SetterBase.cs
- XPathSelectionIterator.cs
- VarInfo.cs
- QueryInterceptorAttribute.cs
- SmtpTransport.cs
- CreateUserWizardStep.cs
- ScrollBar.cs
- CatalogPartCollection.cs
- SingleAnimationUsingKeyFrames.cs
- SmtpFailedRecipientsException.cs
- InputReferenceExpression.cs
- ResponseStream.cs
- GeneralTransform.cs