Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- SymmetricKey.cs
- WebResourceAttribute.cs
- AddInProcess.cs
- unsafenativemethodstextservices.cs
- UshortList2.cs
- RectangleHotSpot.cs
- PocoEntityKeyStrategy.cs
- OrderedDictionary.cs
- OraclePermissionAttribute.cs
- PageClientProxyGenerator.cs
- PathGradientBrush.cs
- AddressingVersion.cs
- DataObjectMethodAttribute.cs
- NavigationExpr.cs
- SoapFormatExtensions.cs
- CollectionBuilder.cs
- X509Certificate2Collection.cs
- FlagsAttribute.cs
- FormViewRow.cs
- TrimSurroundingWhitespaceAttribute.cs
- WebPartDeleteVerb.cs
- DataBindingExpressionBuilder.cs
- FacetDescriptionElement.cs
- WindowAutomationPeer.cs
- InfoCardProofToken.cs
- RuntimeResourceSet.cs
- TextProperties.cs
- PassportIdentity.cs
- Compilation.cs
- FixedPageAutomationPeer.cs
- TypeForwardedToAttribute.cs
- BatchParser.cs
- ValidationResult.cs
- ViewSimplifier.cs
- XmlSchemaExporter.cs
- DispatcherEventArgs.cs
- ConnectionOrientedTransportElement.cs
- ElementFactory.cs
- StringUtil.cs
- controlskin.cs
- XamlWrapperReaders.cs
- DataSourceHelper.cs
- Stroke.cs
- DataTableNewRowEvent.cs
- ComponentEvent.cs
- XmlSchemaParticle.cs
- SqlDataSourceEnumerator.cs
- DBBindings.cs
- CapabilitiesSection.cs
- DetailsViewModeEventArgs.cs
- TransactedBatchContext.cs
- WmfPlaceableFileHeader.cs
- SecurityVersion.cs
- BoundField.cs
- GlyphCache.cs
- DateTimeEditor.cs
- ColorPalette.cs
- DefaultPrintController.cs
- TransformerTypeCollection.cs
- StateMachineHelpers.cs
- SetterBaseCollection.cs
- TransformedBitmap.cs
- UpdateManifestForBrowserApplication.cs
- ValidationHelpers.cs
- _FixedSizeReader.cs
- FlagsAttribute.cs
- FontUnit.cs
- BamlLocalizableResourceKey.cs
- ExpressionWriter.cs
- ProviderException.cs
- DataGridViewComboBoxEditingControl.cs
- AddInAdapter.cs
- EncodingTable.cs
- ClockGroup.cs
- MgmtConfigurationRecord.cs
- FrameworkElementFactory.cs
- ClipboardProcessor.cs
- QueueProcessor.cs
- RegexInterpreter.cs
- MSHTMLHost.cs
- CellParaClient.cs
- AbsoluteQuery.cs
- ParagraphResult.cs
- mediaeventargs.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- MergeEnumerator.cs
- TrustManagerPromptUI.cs
- RemoteWebConfigurationHostServer.cs
- ApplyImportsAction.cs
- XmlHelper.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- BeginEvent.cs
- PtsHelper.cs
- BooleanConverter.cs
- RuntimeEnvironment.cs
- AnnotationResource.cs
- DataGridViewLinkColumn.cs
- DocumentViewerBase.cs
- TypeGenericEnumerableViewSchema.cs
- SortAction.cs