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
- SmtpLoginAuthenticationModule.cs
- ConstructorBuilder.cs
- RayHitTestParameters.cs
- Cell.cs
- UrlPath.cs
- DesignerHelpers.cs
- EndPoint.cs
- ExpressionQuoter.cs
- SoapMessage.cs
- ReadOnlyHierarchicalDataSource.cs
- PaintEvent.cs
- AuthenticationModuleElementCollection.cs
- BoundConstants.cs
- SyndicationContent.cs
- QueryReaderSettings.cs
- RelationshipSet.cs
- ParentUndoUnit.cs
- NativeMethods.cs
- ListenerElementsCollection.cs
- WebPartDescription.cs
- StrongNameHelpers.cs
- TextureBrush.cs
- ByteAnimationBase.cs
- ImmutableCollection.cs
- XmlText.cs
- CryptoApi.cs
- PeerNodeTraceRecord.cs
- Terminate.cs
- ProfileGroupSettings.cs
- ValidatingPropertiesEventArgs.cs
- DescendentsWalkerBase.cs
- WinFormsUtils.cs
- TextReader.cs
- ToolStripTextBox.cs
- DaylightTime.cs
- AQNBuilder.cs
- IndentedWriter.cs
- TextLine.cs
- BindValidator.cs
- _SslStream.cs
- ListViewSortEventArgs.cs
- TraceProvider.cs
- SqlDataSourceFilteringEventArgs.cs
- DBCSCodePageEncoding.cs
- RequestCacheEntry.cs
- TablePattern.cs
- Panel.cs
- XmlException.cs
- StylusPointPropertyId.cs
- CompModSwitches.cs
- RepeatBehavior.cs
- InstanceDataCollectionCollection.cs
- CalendarSelectionChangedEventArgs.cs
- FixedLineResult.cs
- DateTimeConverter2.cs
- ProvideValueServiceProvider.cs
- MultiBinding.cs
- RotateTransform.cs
- ImageCodecInfoPrivate.cs
- SeparatorAutomationPeer.cs
- ArrayItemValue.cs
- RealizedColumnsBlock.cs
- EntityType.cs
- PtsHelper.cs
- URIFormatException.cs
- NumberSubstitution.cs
- BamlRecords.cs
- RewritingValidator.cs
- Single.cs
- SpeechSynthesizer.cs
- StylusPointProperty.cs
- AttributeProviderAttribute.cs
- BinaryUtilClasses.cs
- ServiceControllerDesigner.cs
- AttributeCollection.cs
- BmpBitmapDecoder.cs
- DispatcherHookEventArgs.cs
- UInt16Storage.cs
- ThrowOnMultipleAssignment.cs
- TaiwanCalendar.cs
- MultiBindingExpression.cs
- DiscoveryEndpointValidator.cs
- entityreference_tresulttype.cs
- XmlNamespaceMappingCollection.cs
- HealthMonitoringSection.cs
- DataColumnChangeEvent.cs
- Context.cs
- login.cs
- WebPartTransformerAttribute.cs
- WrappedReader.cs
- XNodeNavigator.cs
- UnionQueryOperator.cs
- CheckBoxPopupAdapter.cs
- Literal.cs
- SqlDataReaderSmi.cs
- VersionedStreamOwner.cs
- DataSourceView.cs
- EventMappingSettingsCollection.cs
- DrawListViewItemEventArgs.cs
- TemplatedEditableDesignerRegion.cs