Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- OleDbStruct.cs
- SizeKeyFrameCollection.cs
- ExtensibleClassFactory.cs
- WebServiceMethodData.cs
- CreatingCookieEventArgs.cs
- StyleModeStack.cs
- BaseTreeIterator.cs
- SortFieldComparer.cs
- PerformanceCounterPermission.cs
- InvalidWMPVersionException.cs
- Utils.cs
- XpsFilter.cs
- DateTimeOffsetConverter.cs
- NameNode.cs
- SqlXml.cs
- Oid.cs
- ProcessHostFactoryHelper.cs
- ObjectDataProvider.cs
- StyleHelper.cs
- AppDomainAttributes.cs
- mongolianshape.cs
- localization.cs
- AutomationEvent.cs
- ClientSideQueueItem.cs
- SafeHandle.cs
- NameObjectCollectionBase.cs
- ToolboxComponentsCreatingEventArgs.cs
- DataSysAttribute.cs
- FramingFormat.cs
- PerformanceCounter.cs
- MonitoringDescriptionAttribute.cs
- OleDbConnection.cs
- AnnotationResourceChangedEventArgs.cs
- XPathException.cs
- FrameSecurityDescriptor.cs
- Vars.cs
- FontStyle.cs
- CompilerGeneratedAttribute.cs
- InfoCardCryptoHelper.cs
- AuthorizationPolicyTypeElementCollection.cs
- Selection.cs
- Button.cs
- NameScope.cs
- CallContext.cs
- DesignerActionGlyph.cs
- XmlSecureResolver.cs
- DataGridHeaderBorder.cs
- HtmlElementCollection.cs
- WindowsScrollBarBits.cs
- DesignerCommandAdapter.cs
- LinqDataSource.cs
- ViewGenerator.cs
- UpdateExpressionVisitor.cs
- DataGridViewImageCell.cs
- BinaryExpression.cs
- FakeModelItemImpl.cs
- MsmqInputChannelBase.cs
- StackBuilderSink.cs
- SRef.cs
- IndexerNameAttribute.cs
- LayoutEditorPart.cs
- SecurityTokenException.cs
- StylusPointProperties.cs
- StdValidatorsAndConverters.cs
- ResourceType.cs
- NodeCounter.cs
- ConstraintStruct.cs
- NullableDoubleAverageAggregationOperator.cs
- Vector.cs
- DescendantBaseQuery.cs
- PrtTicket_Public.cs
- UTF7Encoding.cs
- ToolboxItemCollection.cs
- TextRunTypographyProperties.cs
- TreeNodeCollection.cs
- DataServiceHostFactory.cs
- WebControlsSection.cs
- SdlChannelSink.cs
- ListViewSortEventArgs.cs
- InheritablePropertyChangeInfo.cs
- TextTreeUndoUnit.cs
- DataColumnCollection.cs
- WebPartMovingEventArgs.cs
- DrawingImage.cs
- SubclassTypeValidatorAttribute.cs
- TrackingProfileManager.cs
- XmlSchemas.cs
- MetadataArtifactLoaderCompositeResource.cs
- AbsoluteQuery.cs
- InfoCardHelper.cs
- SQLBinaryStorage.cs
- DataRecordInternal.cs
- StringToken.cs
- DashStyles.cs
- FileSecurity.cs
- BaseCollection.cs
- XmlParser.cs
- SqlResolver.cs
- SpStreamWrapper.cs
- AssemblyName.cs