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
- SqlOuterApplyReducer.cs
- ConfigurationConverterBase.cs
- PtsCache.cs
- DisableDpiAwarenessAttribute.cs
- MetadataItemSerializer.cs
- FileDialogCustomPlaces.cs
- ObjectDataSourceView.cs
- WebBrowserBase.cs
- SystemTcpStatistics.cs
- FixedNode.cs
- FixedTextBuilder.cs
- DependencyProperty.cs
- SafeWaitHandle.cs
- TaskFormBase.cs
- FormView.cs
- CuspData.cs
- DesignerProperties.cs
- SafeHGlobalHandleCritical.cs
- DiscoveryDocument.cs
- MutexSecurity.cs
- PropertyNames.cs
- COM2EnumConverter.cs
- PropertyCollection.cs
- TableAdapterManagerNameHandler.cs
- DLinqAssociationProvider.cs
- RoutingExtensionElement.cs
- ClipboardData.cs
- QilName.cs
- PeerContact.cs
- FileAuthorizationModule.cs
- _SslState.cs
- ValidationPropertyAttribute.cs
- EntityDataSourceState.cs
- ResourcesGenerator.cs
- TextEditorParagraphs.cs
- DetailsViewUpdateEventArgs.cs
- AccessDataSource.cs
- AggregatePushdown.cs
- SystemResourceHost.cs
- FixedPageStructure.cs
- MsmqHostedTransportConfiguration.cs
- VerbConverter.cs
- KeyedPriorityQueue.cs
- EntityClientCacheEntry.cs
- ParserStreamGeometryContext.cs
- DebuggerAttributes.cs
- MainMenu.cs
- thaishape.cs
- DataBindEngine.cs
- Parsers.cs
- XmlSchemaIdentityConstraint.cs
- PathGeometry.cs
- SettingsContext.cs
- UserMapPath.cs
- XPathCompileException.cs
- PageRanges.cs
- ServiceDescriptionSerializer.cs
- SqlExpander.cs
- HttpFileCollectionBase.cs
- InputReferenceExpression.cs
- Emitter.cs
- FtpRequestCacheValidator.cs
- BamlStream.cs
- CallSiteHelpers.cs
- DataTableReader.cs
- CryptoHelper.cs
- AnnotationAuthorChangedEventArgs.cs
- ClrProviderManifest.cs
- FunctionImportElement.cs
- Panel.cs
- IndexedString.cs
- ConsoleCancelEventArgs.cs
- KerberosSecurityTokenParameters.cs
- XhtmlBasicObjectListAdapter.cs
- WindowsStreamSecurityBindingElement.cs
- DownloadProgressEventArgs.cs
- XmlSequenceWriter.cs
- ContextMarshalException.cs
- GridEntry.cs
- UInt32Storage.cs
- DescendentsWalker.cs
- TogglePattern.cs
- NaturalLanguageHyphenator.cs
- MenuTracker.cs
- ToolStripDropDownMenu.cs
- IODescriptionAttribute.cs
- ProtocolInformationWriter.cs
- BoundsDrawingContextWalker.cs
- FullTrustAssemblyCollection.cs
- BooleanProjectedSlot.cs
- NamespaceMapping.cs
- XmlQualifiedName.cs
- datacache.cs
- ValidationEventArgs.cs
- XAMLParseException.cs
- Wizard.cs
- XmlSchemaAnyAttribute.cs
- ToolStripGripRenderEventArgs.cs
- ExceptionTranslationTable.cs
- MultiPropertyDescriptorGridEntry.cs