Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- SmtpNegotiateAuthenticationModule.cs
- StreamUpdate.cs
- BrowserDefinition.cs
- WebSysDisplayNameAttribute.cs
- EventMappingSettingsCollection.cs
- XmlNode.cs
- OdbcCommandBuilder.cs
- DynamicEndpoint.cs
- EntityViewGenerator.cs
- DataServiceRequestException.cs
- ProxyWebPart.cs
- GeneralTransform3DCollection.cs
- FunctionDetailsReader.cs
- Brush.cs
- ActivityDesigner.cs
- DeploymentSection.cs
- CFStream.cs
- CommonDialog.cs
- GridViewCancelEditEventArgs.cs
- FormViewModeEventArgs.cs
- WCFBuildProvider.cs
- EntityContainerEmitter.cs
- SafeCryptoHandles.cs
- UTF7Encoding.cs
- SerializerDescriptor.cs
- SvcMapFileSerializer.cs
- StreamInfo.cs
- Context.cs
- ConfigPathUtility.cs
- Timer.cs
- AssociationSet.cs
- MatrixTransform3D.cs
- SmiEventSink_DeferedProcessing.cs
- ProjectionNode.cs
- SimpleExpression.cs
- DictionaryCustomTypeDescriptor.cs
- FileDialog_Vista_Interop.cs
- ScrollPatternIdentifiers.cs
- ModelMemberCollection.cs
- RuleRef.cs
- RequestChannelBinder.cs
- Parameter.cs
- ContentAlignmentEditor.cs
- VectorKeyFrameCollection.cs
- StorageSetMapping.cs
- QueryResponse.cs
- HttpConfigurationSystem.cs
- PrinterSettings.cs
- PeerToPeerException.cs
- COMException.cs
- TcpProcessProtocolHandler.cs
- StopStoryboard.cs
- BaseParser.cs
- ReferenceConverter.cs
- SponsorHelper.cs
- DoubleCollectionConverter.cs
- OleDbMetaDataFactory.cs
- GlobalItem.cs
- InputScopeConverter.cs
- UICuesEvent.cs
- ReadOnlyObservableCollection.cs
- ServerValidateEventArgs.cs
- MobileTemplatedControlDesigner.cs
- SqlDependency.cs
- AccessibilityHelperForVista.cs
- AsymmetricSignatureDeformatter.cs
- UpdateTranslator.cs
- StateDesigner.Layouts.cs
- _ListenerAsyncResult.cs
- FileUtil.cs
- TimeIntervalCollection.cs
- mediaeventshelper.cs
- ReferenceSchema.cs
- DataGridItem.cs
- AxHost.cs
- QualifiedCellIdBoolean.cs
- XmlTypeMapping.cs
- SQLBytes.cs
- IntegerValidator.cs
- MethodBuilderInstantiation.cs
- DoubleKeyFrameCollection.cs
- ColorPalette.cs
- EntityDataSourceDataSelection.cs
- MarkupObject.cs
- GACMembershipCondition.cs
- PropertyChangingEventArgs.cs
- ServiceX509SecurityTokenProvider.cs
- EntityViewContainer.cs
- OutputCacheProfileCollection.cs
- ExpressionPrefixAttribute.cs
- ControlPaint.cs
- TreePrinter.cs
- HTMLTextWriter.cs
- KeyPressEvent.cs
- ValidationSummary.cs
- WindowsContainer.cs
- ThreadAttributes.cs
- ValueTypeFixupInfo.cs
- GenericRootAutomationPeer.cs
- HttpClientCertificate.cs