Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- HttpCookiesSection.cs
- CheckStoreFileValidityRequest.cs
- NotificationContext.cs
- DBCommand.cs
- DivideByZeroException.cs
- OracleConnectionString.cs
- PermissionListSet.cs
- DesigntimeLicenseContextSerializer.cs
- WindowsButton.cs
- SessionStateModule.cs
- MenuItem.cs
- TaskHelper.cs
- DragDeltaEventArgs.cs
- PageThemeBuildProvider.cs
- MdiWindowListItemConverter.cs
- RelationshipFixer.cs
- followingquery.cs
- CSharpCodeProvider.cs
- XPathNavigatorReader.cs
- InvalidComObjectException.cs
- AsyncSerializedWorker.cs
- AddingNewEventArgs.cs
- ValidationRule.cs
- KnownBoxes.cs
- NumericUpDownAcceleration.cs
- AssociationSet.cs
- SoapClientProtocol.cs
- TaskExtensions.cs
- MobileControl.cs
- TouchFrameEventArgs.cs
- MoveSizeWinEventHandler.cs
- RowUpdatedEventArgs.cs
- DropTarget.cs
- FontFaceLayoutInfo.cs
- CultureMapper.cs
- GridViewPageEventArgs.cs
- rsa.cs
- SecurityUniqueId.cs
- SQLMoney.cs
- initElementDictionary.cs
- SqlProvider.cs
- InheritanceRules.cs
- EditCommandColumn.cs
- _BufferOffsetSize.cs
- SqlConnectionString.cs
- GeometryCollection.cs
- CommandField.cs
- SiteMapProvider.cs
- HtmlGenericControl.cs
- DocumentPaginator.cs
- FunctionMappingTranslator.cs
- SelectionPatternIdentifiers.cs
- CustomWebEventKey.cs
- filewebrequest.cs
- ClientBuildManager.cs
- IndentTextWriter.cs
- ParsedRoute.cs
- _OverlappedAsyncResult.cs
- WebBaseEventKeyComparer.cs
- ClrProviderManifest.cs
- FreezableCollection.cs
- TraceProvider.cs
- ExpressionEditor.cs
- TraceRecord.cs
- ContextMenuService.cs
- EmbossBitmapEffect.cs
- Tracking.cs
- UserControlBuildProvider.cs
- tooltip.cs
- MouseOverProperty.cs
- Literal.cs
- OrderedDictionary.cs
- ContextMenu.cs
- RedBlackList.cs
- AnonymousIdentificationModule.cs
- PageThemeCodeDomTreeGenerator.cs
- StoreContentChangedEventArgs.cs
- SmiTypedGetterSetter.cs
- HashAlgorithm.cs
- UIElementHelper.cs
- Vector3DAnimationUsingKeyFrames.cs
- ThreadExceptionDialog.cs
- DataGridViewHitTestInfo.cs
- ReadOnlyHierarchicalDataSource.cs
- BindingsCollection.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- DataGridViewComboBoxColumn.cs
- RulePatternOps.cs
- InheritanceContextChangedEventManager.cs
- StringValidator.cs
- HeaderPanel.cs
- XmlWellformedWriter.cs
- NumericPagerField.cs
- FileStream.cs
- SmtpFailedRecipientsException.cs
- TypeLibraryHelper.cs
- ValueQuery.cs
- DataGridViewHitTestInfo.cs
- Control.cs
- QueryOutputWriter.cs