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
- NamedPermissionSet.cs
- StorageEntityTypeMapping.cs
- EventLogPermissionEntryCollection.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- Documentation.cs
- EntityEntry.cs
- SmiMetaDataProperty.cs
- XmlSchemaSimpleTypeList.cs
- Process.cs
- LogFlushAsyncResult.cs
- unsafenativemethodsother.cs
- Axis.cs
- TextParaClient.cs
- XmlElementCollection.cs
- BrowsableAttribute.cs
- ColorConvertedBitmapExtension.cs
- SelfIssuedAuthRSACryptoProvider.cs
- AuthenticateEventArgs.cs
- TerminateDesigner.cs
- Types.cs
- ControlPaint.cs
- ConnectionPoolManager.cs
- CompleteWizardStep.cs
- SemaphoreSecurity.cs
- CodeComment.cs
- GenericsInstances.cs
- WebBrowser.cs
- SqlMethodAttribute.cs
- Validator.cs
- AccessViolationException.cs
- DynamicExpression.cs
- CacheChildrenQuery.cs
- EndpointReference.cs
- TrustSection.cs
- ProfileProvider.cs
- SpellCheck.cs
- WebPartConnectionsDisconnectVerb.cs
- CodeExpressionStatement.cs
- NamespaceEmitter.cs
- DependsOnAttribute.cs
- CodeCommentStatementCollection.cs
- ChtmlFormAdapter.cs
- ListItemsPage.cs
- CodeSubDirectory.cs
- dataobject.cs
- StandardBindingCollectionElement.cs
- SecureConversationVersion.cs
- HttpPostProtocolImporter.cs
- QilPatternFactory.cs
- TemplateParser.cs
- SQLInt32Storage.cs
- TokenBasedSet.cs
- DBNull.cs
- KeyPressEvent.cs
- NavigationPropertySingletonExpression.cs
- CacheOutputQuery.cs
- HMACSHA512.cs
- SafeThemeHandle.cs
- Automation.cs
- SettingsSection.cs
- CornerRadius.cs
- PolygonHotSpot.cs
- DecimalAnimation.cs
- LinqDataView.cs
- WebPermission.cs
- LocalFileSettingsProvider.cs
- PaperSize.cs
- PrtTicket_Public_Simple.cs
- CommandArguments.cs
- HtmlInputFile.cs
- TabPanel.cs
- LinkUtilities.cs
- ScriptManagerProxy.cs
- MouseGestureConverter.cs
- ConfigurationValues.cs
- FormatterServices.cs
- XmlReaderSettings.cs
- DataBoundControlDesigner.cs
- TemplateInstanceAttribute.cs
- ActivityExecutorSurrogate.cs
- figurelength.cs
- SizeF.cs
- MouseWheelEventArgs.cs
- TrackingExtract.cs
- EntityDataSourceConfigureObjectContextPanel.cs
- MetabaseSettings.cs
- Underline.cs
- ToolStripDropDownClosedEventArgs.cs
- EntityDataSourceState.cs
- FigureParagraph.cs
- ChildrenQuery.cs
- SpotLight.cs
- AsyncOperation.cs
- ControlCollection.cs
- ToolStripItemEventArgs.cs
- DelimitedListTraceListener.cs
- backend.cs
- WsdlBuildProvider.cs
- Int32Storage.cs
- Char.cs