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
- CodeTypeReferenceCollection.cs
- LoginUtil.cs
- SafeEventLogWriteHandle.cs
- ObjectDataSourceWizardForm.cs
- XmlAtomicValue.cs
- MachineSettingsSection.cs
- Evaluator.cs
- NamespaceExpr.cs
- ProviderUtil.cs
- Camera.cs
- ConnectionPoint.cs
- GridViewDeleteEventArgs.cs
- basemetadatamappingvisitor.cs
- CompositeKey.cs
- WsatServiceCertificate.cs
- WebPartEditorCancelVerb.cs
- StylusDevice.cs
- LoginView.cs
- FlowDocumentReader.cs
- BitmapEffectDrawing.cs
- WebControl.cs
- ForeignKeyConstraint.cs
- XmlSchemaSequence.cs
- DataFieldConverter.cs
- BindingWorker.cs
- UnescapedXmlDiagnosticData.cs
- RtType.cs
- ConcurrentDictionary.cs
- Directory.cs
- COSERVERINFO.cs
- XComponentModel.cs
- SqlProvider.cs
- securestring.cs
- InvalidateEvent.cs
- WebPartZoneCollection.cs
- Rect3DConverter.cs
- RoutedEventHandlerInfo.cs
- IPEndPoint.cs
- InputLanguageProfileNotifySink.cs
- TypeUsage.cs
- WeakReference.cs
- ExtendedTransformFactory.cs
- WebServiceTypeData.cs
- NameValueCollection.cs
- FrameworkElement.cs
- SystemIPv6InterfaceProperties.cs
- Condition.cs
- _ServiceNameStore.cs
- LassoHelper.cs
- ChannelTracker.cs
- SystemEvents.cs
- BufferedGenericXmlSecurityToken.cs
- BasicCellRelation.cs
- DocobjHost.cs
- BaseComponentEditor.cs
- GradientSpreadMethodValidation.cs
- EndpointAddressMessageFilter.cs
- XmlDocumentFragment.cs
- WorkflowEventArgs.cs
- TrackingConditionCollection.cs
- PackWebRequest.cs
- IIS7WorkerRequest.cs
- ValidationPropertyAttribute.cs
- Stack.cs
- PolyLineSegment.cs
- Int32RectConverter.cs
- path.cs
- ColumnHeaderConverter.cs
- SessionStateItemCollection.cs
- ISO2022Encoding.cs
- LocationFactory.cs
- HttpServerChannel.cs
- SoapTypeAttribute.cs
- DataIdProcessor.cs
- HttpVersion.cs
- FormParameter.cs
- WindowInteropHelper.cs
- DeploymentExceptionMapper.cs
- XmlQualifiedName.cs
- PackageRelationshipSelector.cs
- GeneralTransformCollection.cs
- DoubleLinkList.cs
- MappingModelBuildProvider.cs
- XmlStreamNodeWriter.cs
- Vector3D.cs
- SqlConnectionHelper.cs
- OdbcDataAdapter.cs
- RemotingConfiguration.cs
- RadialGradientBrush.cs
- DbDataRecord.cs
- TableRow.cs
- StateDesigner.Helpers.cs
- MatrixStack.cs
- _HeaderInfo.cs
- OracleString.cs
- ApplicationHost.cs
- TextViewBase.cs
- BidOverLoads.cs
- SharedConnectionWorkflowTransactionService.cs
- TrackingMemoryStreamFactory.cs