Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- LongValidator.cs
- AnnouncementClient.cs
- RSAPKCS1SignatureFormatter.cs
- BitStack.cs
- MultiSelectRootGridEntry.cs
- SingleTagSectionHandler.cs
- KeyFrames.cs
- QilXmlWriter.cs
- WizardSideBarListControlItemEventArgs.cs
- InternalBufferOverflowException.cs
- PathTooLongException.cs
- BuildManager.cs
- ZoomPercentageConverter.cs
- InvokeGenerator.cs
- EventBuilder.cs
- ECDiffieHellmanCngPublicKey.cs
- HtmlGenericControl.cs
- WindowsRebar.cs
- WaitHandleCannotBeOpenedException.cs
- FileDialog_Vista_Interop.cs
- DesignerHierarchicalDataSourceView.cs
- ClientSponsor.cs
- Claim.cs
- DbDataAdapter.cs
- Permission.cs
- SQLByte.cs
- BindingContext.cs
- PrintDialogDesigner.cs
- DataViewManagerListItemTypeDescriptor.cs
- EventRouteFactory.cs
- ToolStripDropTargetManager.cs
- HopperCache.cs
- elementinformation.cs
- InstanceContextMode.cs
- ResourceManager.cs
- X509Chain.cs
- Accessible.cs
- ScriptingSectionGroup.cs
- RegisteredScript.cs
- ToolStripLocationCancelEventArgs.cs
- NetPipeSectionData.cs
- SqlUtils.cs
- Debugger.cs
- XmlAnyElementAttribute.cs
- CodePageEncoding.cs
- WorkflowMarkupSerializationProvider.cs
- X509Extension.cs
- ContainerActivationHelper.cs
- LineGeometry.cs
- GraphicsContainer.cs
- GraphicsState.cs
- PseudoWebRequest.cs
- BaseDataBoundControl.cs
- EmptyControlCollection.cs
- SaveFileDialog.cs
- EmptyElement.cs
- ByteStreamGeometryContext.cs
- SqlClientFactory.cs
- DataGridAddNewRow.cs
- Enumerable.cs
- ExceptionUtil.cs
- ReadOnlyAttribute.cs
- SQLByte.cs
- XmlLanguageConverter.cs
- InkCanvasSelection.cs
- Wildcard.cs
- TransformerConfigurationWizardBase.cs
- UIElementAutomationPeer.cs
- ComAdminWrapper.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- ExpressionVisitorHelpers.cs
- XmlWrappingReader.cs
- ConsoleKeyInfo.cs
- Simplifier.cs
- ServerIdentity.cs
- Attribute.cs
- SafeNativeMethods.cs
- Padding.cs
- Single.cs
- InvariantComparer.cs
- InheritanceRules.cs
- NamespaceList.cs
- SafeArrayRankMismatchException.cs
- SectionInput.cs
- Executor.cs
- DesignerVerbCollection.cs
- Converter.cs
- DataSourceControlBuilder.cs
- SystemIPGlobalStatistics.cs
- InfocardExtendedInformationEntry.cs
- login.cs
- RolePrincipal.cs
- _OverlappedAsyncResult.cs
- HMACRIPEMD160.cs
- UICuesEvent.cs
- OleDbInfoMessageEvent.cs
- EventDescriptor.cs
- OperationCanceledException.cs
- ResourcePermissionBase.cs
- SystemPens.cs