Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DataObject.cs
- sortedlist.cs
- InternalConfigRoot.cs
- DuplicateWaitObjectException.cs
- ListBoxItemWrapperAutomationPeer.cs
- LongAverageAggregationOperator.cs
- TriggerActionCollection.cs
- AmbientLight.cs
- CodeDelegateInvokeExpression.cs
- TreeViewDataItemAutomationPeer.cs
- HeaderPanel.cs
- XmlNodeChangedEventArgs.cs
- FeatureSupport.cs
- NativeObjectSecurity.cs
- HwndAppCommandInputProvider.cs
- SafeWaitHandle.cs
- Translator.cs
- BlurBitmapEffect.cs
- MatrixValueSerializer.cs
- MetricEntry.cs
- FormatStringEditor.cs
- DisableDpiAwarenessAttribute.cs
- FacetValueContainer.cs
- SubpageParaClient.cs
- CompensationDesigner.cs
- PeerCustomResolverBindingElement.cs
- TimeSpan.cs
- SessionStateContainer.cs
- CodeDomSerializerBase.cs
- SortDescriptionCollection.cs
- WindowsEditBox.cs
- PropertyRecord.cs
- ElementUtil.cs
- ThreadInterruptedException.cs
- TaiwanCalendar.cs
- FrameworkElement.cs
- PermissionRequestEvidence.cs
- AccessText.cs
- MouseEvent.cs
- WebPartDisplayModeCollection.cs
- Button.cs
- OrderingExpression.cs
- NextPreviousPagerField.cs
- _WebProxyDataBuilder.cs
- WebPartAuthorizationEventArgs.cs
- ReadOnlyHierarchicalDataSource.cs
- TextTreeFixupNode.cs
- QilSortKey.cs
- xsdvalidator.cs
- EventToken.cs
- ListControlActionList.cs
- MeasureData.cs
- SymbolType.cs
- OleDbErrorCollection.cs
- LayoutUtils.cs
- ToolStripPanelRenderEventArgs.cs
- Size.cs
- URI.cs
- ContextMenu.cs
- QuaternionAnimation.cs
- PhysicalOps.cs
- XhtmlBasicLinkAdapter.cs
- CodeSnippetTypeMember.cs
- ErrorWrapper.cs
- ToolStripSplitStackLayout.cs
- RegexWorker.cs
- SchemaElementLookUpTable.cs
- ConfigXmlSignificantWhitespace.cs
- ItemAutomationPeer.cs
- BuildProvider.cs
- DataGridRowHeaderAutomationPeer.cs
- OperatorExpressions.cs
- CfgParser.cs
- PartBasedPackageProperties.cs
- BindingSource.cs
- QilInvokeEarlyBound.cs
- CellCreator.cs
- PagePropertiesChangingEventArgs.cs
- SimpleHandlerBuildProvider.cs
- sqlnorm.cs
- DataControlField.cs
- DetailsViewPagerRow.cs
- UnsafeNativeMethods.cs
- DataGridViewCellCancelEventArgs.cs
- SequenceDesigner.cs
- AutomationElementCollection.cs
- WinFormsUtils.cs
- Bezier.cs
- ImageListDesigner.cs
- TreeView.cs
- NativeWindow.cs
- XmlElementList.cs
- DownloadProgressEventArgs.cs
- AudioFormatConverter.cs
- XmlSchemaSimpleTypeUnion.cs
- InlinedAggregationOperatorEnumerator.cs
- RNGCryptoServiceProvider.cs
- SmiMetaDataProperty.cs
- SafeViewOfFileHandle.cs
- DataGridColumnStyleMappingNameEditor.cs