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
- Calendar.cs
- ToolStripMenuItemCodeDomSerializer.cs
- MetadataArtifactLoaderComposite.cs
- _AutoWebProxyScriptEngine.cs
- FixedSOMTableCell.cs
- DataTemplateSelector.cs
- WebScriptClientGenerator.cs
- ipaddressinformationcollection.cs
- Win32Exception.cs
- WindowsStreamSecurityUpgradeProvider.cs
- WebRequestModulesSection.cs
- DurableMessageDispatchInspector.cs
- SqlVisitor.cs
- SourceSwitch.cs
- AnnotationAdorner.cs
- ByteArrayHelperWithString.cs
- DataGridToolTip.cs
- NativeMethods.cs
- AssemblyAttributesGoHere.cs
- ComboBoxItem.cs
- Directory.cs
- InvalidCardException.cs
- XmlSchemaSubstitutionGroup.cs
- SchemaTableOptionalColumn.cs
- DiagnosticsConfigurationHandler.cs
- DataSvcMapFileSerializer.cs
- ScrollBarRenderer.cs
- KeySplineConverter.cs
- XmlLinkedNode.cs
- EmbeddedMailObject.cs
- SqlNotificationRequest.cs
- HttpPostServerProtocol.cs
- CollectionEditor.cs
- CompModSwitches.cs
- SiteMapHierarchicalDataSourceView.cs
- AdjustableArrowCap.cs
- ActivityInstanceMap.cs
- ListChunk.cs
- SpellerInterop.cs
- ChildDocumentBlock.cs
- XmlWellformedWriterHelpers.cs
- InputDevice.cs
- HMACRIPEMD160.cs
- FileRecordSequence.cs
- CodeTypeReference.cs
- XslCompiledTransform.cs
- UriGenerator.cs
- WindowsToolbar.cs
- ObjectStateManager.cs
- DataGridPageChangedEventArgs.cs
- Utility.cs
- ConfigurationLocationCollection.cs
- EventToken.cs
- URLString.cs
- LabelEditEvent.cs
- ColorInterpolationModeValidation.cs
- QilName.cs
- KeyValuePairs.cs
- InkCanvasSelectionAdorner.cs
- ToolStripLocationCancelEventArgs.cs
- TextCollapsingProperties.cs
- CustomWebEventKey.cs
- CalendarAutoFormat.cs
- AdRotator.cs
- XPathSelectionIterator.cs
- DataGridViewMethods.cs
- _DisconnectOverlappedAsyncResult.cs
- RelationalExpressions.cs
- ProfileBuildProvider.cs
- Cursor.cs
- ping.cs
- TablePattern.cs
- AuthenticationManager.cs
- RawTextInputReport.cs
- UIServiceHelper.cs
- ScrollContentPresenter.cs
- PermissionListSet.cs
- PropertyIdentifier.cs
- ArrayWithOffset.cs
- ModuleBuilder.cs
- UrlMappingsModule.cs
- FrameworkElementFactoryMarkupObject.cs
- TextLineBreak.cs
- ConfigsHelper.cs
- HttpCookiesSection.cs
- FileEnumerator.cs
- SoapFault.cs
- TrackingMemoryStream.cs
- HttpHandlerActionCollection.cs
- EmbeddedMailObjectsCollection.cs
- SmtpCommands.cs
- DayRenderEvent.cs
- DataGridViewMethods.cs
- ServicesUtilities.cs
- wmiutil.cs
- CacheVirtualItemsEvent.cs
- SoapExtensionReflector.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- Roles.cs
- StylusPointProperty.cs