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
- CmsUtils.cs
- MouseGesture.cs
- RuleConditionDialog.Designer.cs
- XComponentModel.cs
- JsonCollectionDataContract.cs
- OutputCacheSettings.cs
- BufferBuilder.cs
- UnauthorizedAccessException.cs
- RSAPKCS1SignatureFormatter.cs
- SchemaObjectWriter.cs
- UnauthorizedWebPart.cs
- CodeGen.cs
- CommittableTransaction.cs
- Geometry3D.cs
- MeasurementDCInfo.cs
- GcHandle.cs
- XPathNavigatorReader.cs
- recordstatefactory.cs
- sqlser.cs
- GroupBoxRenderer.cs
- SignatureHelper.cs
- ScrollViewerAutomationPeer.cs
- ReadingWritingEntityEventArgs.cs
- TargetParameterCountException.cs
- DynamicField.cs
- FixedPosition.cs
- CustomAssemblyResolver.cs
- RoleServiceManager.cs
- FillRuleValidation.cs
- FixedStringLookup.cs
- StringReader.cs
- JournalEntryStack.cs
- SystemUnicastIPAddressInformation.cs
- UIInitializationException.cs
- CqlBlock.cs
- GridItemProviderWrapper.cs
- ManipulationLogic.cs
- RegexCharClass.cs
- IconHelper.cs
- CodePageUtils.cs
- ImportContext.cs
- WsiProfilesElement.cs
- ClientRuntimeConfig.cs
- HitTestWithPointDrawingContextWalker.cs
- SettingsProviderCollection.cs
- ZipIOLocalFileBlock.cs
- _SpnDictionary.cs
- SpecularMaterial.cs
- TranslateTransform3D.cs
- AbstractSvcMapFileLoader.cs
- Wizard.cs
- BaseResourcesBuildProvider.cs
- FormsAuthenticationEventArgs.cs
- FlagsAttribute.cs
- PluralizationServiceUtil.cs
- QueryResults.cs
- ZeroOpNode.cs
- XhtmlBasicSelectionListAdapter.cs
- Html32TextWriter.cs
- DocumentReference.cs
- ConfigUtil.cs
- ReferenceSchema.cs
- OleDbParameterCollection.cs
- AttributeCollection.cs
- BamlLocalizer.cs
- NullableDoubleAverageAggregationOperator.cs
- input.cs
- CounterCreationDataCollection.cs
- FactoryMaker.cs
- FlowSwitch.cs
- CodeTypeDeclarationCollection.cs
- FileDialog.cs
- DSACryptoServiceProvider.cs
- SqlUtil.cs
- KnownBoxes.cs
- UIElementCollection.cs
- DependencyObject.cs
- GridViewSelectEventArgs.cs
- Privilege.cs
- ISO2022Encoding.cs
- DbMetaDataFactory.cs
- WebPartDisplayMode.cs
- SessionParameter.cs
- RegexFCD.cs
- SwitchElementsCollection.cs
- PerformanceCounterPermissionAttribute.cs
- MetadataArtifactLoader.cs
- HttpAsyncResult.cs
- TableLayout.cs
- BasicHttpMessageSecurity.cs
- RC2CryptoServiceProvider.cs
- ClosureBinding.cs
- StatusBarPanel.cs
- WindowsFormsHost.cs
- EventLogPermissionHolder.cs
- HitTestWithPointDrawingContextWalker.cs
- XmlSerializerFormatAttribute.cs
- CellQuery.cs
- SafeNativeMethods.cs
- CachedRequestParams.cs