Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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: [....]/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
- CqlParserHelpers.cs
- AlternationConverter.cs
- ItemsPanelTemplate.cs
- ObjectDataSourceSelectingEventArgs.cs
- MatchingStyle.cs
- TypeGenericEnumerableViewSchema.cs
- ComPlusServiceLoader.cs
- VectorCollectionConverter.cs
- Trace.cs
- CodePageUtils.cs
- DbProviderFactory.cs
- StagingAreaInputItem.cs
- EtwTrace.cs
- CapiHashAlgorithm.cs
- TargetControlTypeAttribute.cs
- SchemaElementLookUpTableEnumerator.cs
- SystemIPGlobalStatistics.cs
- DesignerCalendarAdapter.cs
- ContextTokenTypeConverter.cs
- baseaxisquery.cs
- DrawingContextWalker.cs
- PassportAuthenticationModule.cs
- BaseDataBoundControl.cs
- ComponentChangedEvent.cs
- SimpleTextLine.cs
- LayoutEngine.cs
- Wizard.cs
- BasicExpressionVisitor.cs
- ZipQueryOperator.cs
- FtpCachePolicyElement.cs
- ActivationArguments.cs
- ConstraintConverter.cs
- BrowserInteropHelper.cs
- ObjectViewEntityCollectionData.cs
- ApplicationSecurityInfo.cs
- GlobalAllocSafeHandle.cs
- SafeHandle.cs
- ConstraintStruct.cs
- Normalizer.cs
- SystemColors.cs
- Buffer.cs
- COM2ColorConverter.cs
- SafeFileMappingHandle.cs
- ReadOnlyDataSourceView.cs
- InternalConfigConfigurationFactory.cs
- FederatedMessageSecurityOverHttpElement.cs
- Typeface.cs
- base64Transforms.cs
- LazyTextWriterCreator.cs
- Win32Native.cs
- SystemWebSectionGroup.cs
- DataSourceComponent.cs
- AxisAngleRotation3D.cs
- PositiveTimeSpanValidator.cs
- HttpModuleAction.cs
- FileSecurity.cs
- QueueSurrogate.cs
- BitmapEffectrendercontext.cs
- NotifyParentPropertyAttribute.cs
- TrackingParameters.cs
- RequestValidator.cs
- MimeTypeAttribute.cs
- MetadataArtifactLoader.cs
- PermissionSet.cs
- DocumentDesigner.cs
- ProfilePropertyMetadata.cs
- XmlUtilWriter.cs
- AttachmentService.cs
- DbSourceParameterCollection.cs
- RegexReplacement.cs
- HtmlInputButton.cs
- EventMap.cs
- KnownTypeAttribute.cs
- ResourcesGenerator.cs
- CssStyleCollection.cs
- TypeContext.cs
- IgnoreFlushAndCloseStream.cs
- XmlDataSource.cs
- HttpResponse.cs
- HtmlInputImage.cs
- BinaryFormatter.cs
- HandlerFactoryCache.cs
- HtmlTableRowCollection.cs
- NotifyParentPropertyAttribute.cs
- ErrorEventArgs.cs
- DataShape.cs
- SqlDataSourceEnumerator.cs
- ObfuscationAttribute.cs
- Transform3DGroup.cs
- Point3D.cs
- Int32AnimationUsingKeyFrames.cs
- SqlInternalConnection.cs
- Size3DValueSerializer.cs
- ToolConsole.cs
- CustomSignedXml.cs
- QuaternionKeyFrameCollection.cs
- NotifyParentPropertyAttribute.cs
- HtmlTextArea.cs
- RuntimeDelegateArgument.cs
- DiscoveryReferences.cs