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
- WebConfigurationManager.cs
- ToolStripButton.cs
- BamlRecordHelper.cs
- UIElementParaClient.cs
- CodeIterationStatement.cs
- RegisteredExpandoAttribute.cs
- DiscoveryMessageSequence.cs
- Pair.cs
- _NativeSSPI.cs
- ParserStreamGeometryContext.cs
- Int16Storage.cs
- FlowLayout.cs
- WindowsIdentity.cs
- ExceptQueryOperator.cs
- TypeDescriptionProviderAttribute.cs
- SQLBinary.cs
- DataGridParentRows.cs
- baseaxisquery.cs
- ScriptResourceAttribute.cs
- QueryableDataSourceView.cs
- MessageQueueAccessControlEntry.cs
- AppDomainProtocolHandler.cs
- WsrmMessageInfo.cs
- MaterializeFromAtom.cs
- PropertyEmitterBase.cs
- SemaphoreSlim.cs
- DataGridSortCommandEventArgs.cs
- UnknownBitmapEncoder.cs
- RawMouseInputReport.cs
- BinaryConverter.cs
- FixedFindEngine.cs
- MdiWindowListStrip.cs
- MasterPageBuildProvider.cs
- ContainerUIElement3D.cs
- METAHEADER.cs
- ComponentDispatcher.cs
- XmlDocument.cs
- TextDocumentView.cs
- PriorityItem.cs
- BaseValidator.cs
- CollectionBase.cs
- ResXResourceSet.cs
- XPathDocumentIterator.cs
- EditorBrowsableAttribute.cs
- Timer.cs
- PerformanceCounterManager.cs
- ViewStateException.cs
- KernelTypeValidation.cs
- StatusBarPanel.cs
- basecomparevalidator.cs
- ElementUtil.cs
- ConnectionStringsExpressionEditor.cs
- iisPickupDirectory.cs
- SqlFacetAttribute.cs
- WebRequest.cs
- BitmapEffectOutputConnector.cs
- DataGridAutoFormatDialog.cs
- LeaseManager.cs
- FillBehavior.cs
- DesignerSerializationOptionsAttribute.cs
- IndicFontClient.cs
- TextStore.cs
- SendMessageRecord.cs
- WasHttpHandlersInstallComponent.cs
- ObjectContext.cs
- Emitter.cs
- ScriptingWebServicesSectionGroup.cs
- ChunkedMemoryStream.cs
- HttpDictionary.cs
- DataBindingExpressionBuilder.cs
- RewritingValidator.cs
- FileInfo.cs
- SortQueryOperator.cs
- VirtualPathProvider.cs
- ActivityWithResultConverter.cs
- ResolveNameEventArgs.cs
- ParallelTimeline.cs
- RegexWorker.cs
- DataGridViewCheckBoxCell.cs
- XmlAtomicValue.cs
- ModelUIElement3D.cs
- UnicodeEncoding.cs
- mactripleDES.cs
- Content.cs
- ExternalDataExchangeService.cs
- XmlToDatasetMap.cs
- UdpChannelListener.cs
- StylusShape.cs
- UInt32.cs
- _AutoWebProxyScriptWrapper.cs
- SpellerHighlightLayer.cs
- ServiceParser.cs
- ConnectAlgorithms.cs
- FontUnitConverter.cs
- TrustManagerMoreInformation.cs
- AutomationFocusChangedEventArgs.cs
- RelationshipSet.cs
- __ComObject.cs
- Form.cs
- DataServiceHostFactory.cs