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
- MessageQueue.cs
- TreeNodeClickEventArgs.cs
- WebBrowserNavigatingEventHandler.cs
- ClipboardProcessor.cs
- XmlSchemaChoice.cs
- Int32Rect.cs
- CodeConditionStatement.cs
- InvariantComparer.cs
- WebBrowsableAttribute.cs
- GridViewColumn.cs
- XmlWrappingWriter.cs
- BitmapDecoder.cs
- NavigationProperty.cs
- StateMachineWorkflowDesigner.cs
- PointAnimation.cs
- ResourceManagerWrapper.cs
- HelpEvent.cs
- LastQueryOperator.cs
- PageAsyncTask.cs
- DataGridViewCellStyleChangedEventArgs.cs
- WindowsFormsHostAutomationPeer.cs
- MorphHelpers.cs
- FormClosedEvent.cs
- VersionedStreamOwner.cs
- IteratorFilter.cs
- ScriptingRoleServiceSection.cs
- CachingHintValidation.cs
- Root.cs
- AdvancedBindingEditor.cs
- StrokeDescriptor.cs
- EdmSchemaAttribute.cs
- CheckBox.cs
- DocumentSequence.cs
- JobDuplex.cs
- UrlPath.cs
- ControlValuePropertyAttribute.cs
- DateTimeUtil.cs
- IdentifierCreationService.cs
- UIElementIsland.cs
- SourceSwitch.cs
- LightweightCodeGenerator.cs
- _KerberosClient.cs
- LongTypeConverter.cs
- OrderingInfo.cs
- RequestReplyCorrelator.cs
- InputQueueChannelAcceptor.cs
- NetworkInterface.cs
- DateRangeEvent.cs
- OutputScopeManager.cs
- Part.cs
- ContentPropertyAttribute.cs
- UpdateCompiler.cs
- ParentQuery.cs
- ErrorHandler.cs
- ToolStripSettings.cs
- ProfileProvider.cs
- GenericWebPart.cs
- VSWCFServiceContractGenerator.cs
- DriveInfo.cs
- APCustomTypeDescriptor.cs
- XPathMessageContext.cs
- DesignerActionUI.cs
- FontEmbeddingManager.cs
- ToolStripItemEventArgs.cs
- MonthCalendar.cs
- _DomainName.cs
- EntityDataSourceContextCreatedEventArgs.cs
- XmlCountingReader.cs
- InvokeWebService.cs
- precedingquery.cs
- Brush.cs
- BaseConfigurationRecord.cs
- UpdateCommandGenerator.cs
- AppSettingsExpressionBuilder.cs
- rsa.cs
- FixUpCollection.cs
- ProxyManager.cs
- GregorianCalendarHelper.cs
- ProcessHost.cs
- OutputWindow.cs
- DateTimeOffsetAdapter.cs
- X509Utils.cs
- Stackframe.cs
- Package.cs
- HashStream.cs
- SamlAssertion.cs
- TypeInitializationException.cs
- SemanticResolver.cs
- GridViewAutomationPeer.cs
- contentDescriptor.cs
- CompositeTypefaceMetrics.cs
- precedingsibling.cs
- RegexTree.cs
- InArgument.cs
- ActivityExecutionFilter.cs
- AttachedPropertyMethodSelector.cs
- PeerCollaborationPermission.cs
- WebBrowserProgressChangedEventHandler.cs
- WinFormsSecurity.cs
- IntranetCredentialPolicy.cs