Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- DataGridViewLinkColumn.cs
- ActionItem.cs
- Interlocked.cs
- SQLChars.cs
- DesignerWidgets.cs
- ThicknessAnimationBase.cs
- UnmanagedBitmapWrapper.cs
- LicenseProviderAttribute.cs
- HostExecutionContextManager.cs
- MetadataCollection.cs
- StandardOleMarshalObject.cs
- MSAAWinEventWrap.cs
- State.cs
- RoutingUtilities.cs
- CommonXSendMessage.cs
- ExecutionContext.cs
- BitmapDownload.cs
- ValidationHelper.cs
- SafeBitVector32.cs
- XmlElement.cs
- TcpClientSocketManager.cs
- GridViewHeaderRowPresenter.cs
- StylusOverProperty.cs
- WebScriptEnablingBehavior.cs
- Oci.cs
- Memoizer.cs
- XomlCompilerError.cs
- dataprotectionpermissionattribute.cs
- ValidatorCollection.cs
- UiaCoreProviderApi.cs
- DataGridViewImageColumn.cs
- HuffmanTree.cs
- ConfigDefinitionUpdates.cs
- TraceProvider.cs
- ScriptRegistrationManager.cs
- VerificationAttribute.cs
- SoapConverter.cs
- HTMLTextWriter.cs
- ComponentResourceManager.cs
- ClrProviderManifest.cs
- BooleanProjectedSlot.cs
- IDReferencePropertyAttribute.cs
- PageThemeBuildProvider.cs
- _FixedSizeReader.cs
- StorageComplexPropertyMapping.cs
- BaseResourcesBuildProvider.cs
- InputManager.cs
- sqlcontext.cs
- ProxyWebPart.cs
- Assembly.cs
- QilNode.cs
- SwitchExpression.cs
- ServiceModelInstallComponent.cs
- CompilerTypeWithParams.cs
- ObjectStateFormatter.cs
- TimeZone.cs
- TraceRecord.cs
- TokenBasedSet.cs
- HtmlDocument.cs
- UserValidatedEventArgs.cs
- RuntimeConfigLKG.cs
- CommandBindingCollection.cs
- PanelDesigner.cs
- HScrollProperties.cs
- MatrixStack.cs
- RegistryKey.cs
- AssociationEndMember.cs
- DesignerVerbCollection.cs
- UTF7Encoding.cs
- VariantWrapper.cs
- DrawItemEvent.cs
- Composition.cs
- WinFormsComponentEditor.cs
- SymbolEqualComparer.cs
- SecurityState.cs
- ControlPropertyNameConverter.cs
- EntityCommandCompilationException.cs
- GraphicsPath.cs
- DocComment.cs
- IncrementalReadDecoders.cs
- SqlConnectionHelper.cs
- EdmError.cs
- Point.cs
- SqlUserDefinedTypeAttribute.cs
- WebServiceData.cs
- TranslateTransform3D.cs
- DateTimeFormatInfoScanner.cs
- TypeSemantics.cs
- PhysicalFontFamily.cs
- CollectionsUtil.cs
- DbTransaction.cs
- NamespaceExpr.cs
- Win32.cs
- ToolStripManager.cs
- TableLayoutSettingsTypeConverter.cs
- Selection.cs
- X509CertificateRecipientClientCredential.cs
- DataGridViewCellCancelEventArgs.cs
- RelationshipWrapper.cs
- CardSpaceException.cs