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
- Point3DConverter.cs
- BindingNavigator.cs
- XmlHierarchicalEnumerable.cs
- SqlUdtInfo.cs
- ConfigurationSettings.cs
- WsdlBuildProvider.cs
- PeerObject.cs
- FontUnit.cs
- HybridDictionary.cs
- Lasso.cs
- WindowsListViewGroup.cs
- CodeCommentStatement.cs
- MeasureItemEvent.cs
- DataGridViewControlCollection.cs
- _SSPISessionCache.cs
- InfoCardArgumentException.cs
- IndexedGlyphRun.cs
- HyperLink.cs
- PatternMatchRules.cs
- DataGridView.cs
- TransformerConfigurationWizardBase.cs
- TerminateWorkflow.cs
- selecteditemcollection.cs
- XmlSchemaComplexType.cs
- SspiSecurityTokenParameters.cs
- ManagementInstaller.cs
- RegexCapture.cs
- RequestContext.cs
- Container.cs
- PageThemeBuildProvider.cs
- WebResourceAttribute.cs
- ItemDragEvent.cs
- TableRowCollection.cs
- ListCollectionView.cs
- ToolStripAdornerWindowService.cs
- AnnotationResourceCollection.cs
- RoleGroup.cs
- FocusChangedEventArgs.cs
- TextProperties.cs
- InkSerializer.cs
- WebBrowserProgressChangedEventHandler.cs
- Rect3DValueSerializer.cs
- httpapplicationstate.cs
- MenuItemCollection.cs
- FakeModelItemImpl.cs
- DesignSurfaceCollection.cs
- ModuleElement.cs
- OutputWindow.cs
- MetadataItemSerializer.cs
- TemplateBindingExpressionConverter.cs
- TreeViewEvent.cs
- XsltFunctions.cs
- RewritingValidator.cs
- ExpressionSelection.cs
- TransactionBehavior.cs
- HtmlTableCell.cs
- Policy.cs
- oledbmetadatacollectionnames.cs
- ComEventsMethod.cs
- ProcessThread.cs
- PageOutputQuality.cs
- AutomationIdentifierGuids.cs
- MimeMapping.cs
- TextSelectionHighlightLayer.cs
- DateTimeOffsetConverter.cs
- RegexTypeEditor.cs
- QueryHandler.cs
- BufferedStream.cs
- BlockUIContainer.cs
- NativeMethods.cs
- UserPreferenceChangedEventArgs.cs
- DefaultSection.cs
- ObjectStateManager.cs
- AdornerDecorator.cs
- ISFTagAndGuidCache.cs
- Journal.cs
- HMACSHA256.cs
- DataListItemCollection.cs
- ArrayList.cs
- AddInAttribute.cs
- DbDataReader.cs
- QueryReaderSettings.cs
- CompleteWizardStep.cs
- Nullable.cs
- SetStoryboardSpeedRatio.cs
- DialogWindow.cs
- ReferenceTypeElement.cs
- PanelStyle.cs
- TextFormatterImp.cs
- SqlException.cs
- MenuAdapter.cs
- ItemsControlAutomationPeer.cs
- COM2FontConverter.cs
- BroadcastEventHelper.cs
- CodePrimitiveExpression.cs
- ImageFormat.cs
- ActivityStatusChangeEventArgs.cs
- XmlValueConverter.cs
- DecoderReplacementFallback.cs
- WindowsGraphicsWrapper.cs