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
- FormViewRow.cs
- ProgressBarAutomationPeer.cs
- ContainerVisual.cs
- Animatable.cs
- ListBoxItemAutomationPeer.cs
- Calendar.cs
- updateconfighost.cs
- PerSessionInstanceContextProvider.cs
- Attributes.cs
- FunctionQuery.cs
- TextRangeEditTables.cs
- SimpleWebHandlerParser.cs
- XmlQueryStaticData.cs
- GetParentChain.cs
- Parser.cs
- NativeDirectoryServicesQueryAPIs.cs
- PropertyNames.cs
- itemelement.cs
- ConversionValidationRule.cs
- ChannelSinkStacks.cs
- recordstatescratchpad.cs
- ImportOptions.cs
- VerticalAlignConverter.cs
- CallSiteOps.cs
- CharacterBufferReference.cs
- UrlMappingsSection.cs
- VisualBrush.cs
- StringArrayConverter.cs
- CompositeActivityValidator.cs
- ReferenceService.cs
- EntityViewGenerationAttribute.cs
- EmptyReadOnlyDictionaryInternal.cs
- ResourcePermissionBaseEntry.cs
- ServiceMemoryGates.cs
- ReaderWriterLock.cs
- WorkflowServiceAttributes.cs
- ScriptReferenceEventArgs.cs
- RegexGroupCollection.cs
- TextRangeAdaptor.cs
- AliasedExpr.cs
- ChildChangedEventArgs.cs
- AxWrapperGen.cs
- FastPropertyAccessor.cs
- ContainsSearchOperator.cs
- RemoteWebConfigurationHostServer.cs
- DataGridLinkButton.cs
- ServiceAppDomainAssociationProvider.cs
- Queue.cs
- ChineseLunisolarCalendar.cs
- LiteralControl.cs
- EmulateRecognizeCompletedEventArgs.cs
- ComplexLine.cs
- _RequestCacheProtocol.cs
- PropertyPathWorker.cs
- ScrollChangedEventArgs.cs
- ErrorRuntimeConfig.cs
- ConfigXmlComment.cs
- PrintPageEvent.cs
- StructuralType.cs
- HttpContext.cs
- NonClientArea.cs
- MULTI_QI.cs
- ToolBarButton.cs
- DeflateEmulationStream.cs
- ValidateNames.cs
- QuerySettings.cs
- unsafenativemethodstextservices.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- BasicExpandProvider.cs
- EmptyReadOnlyDictionaryInternal.cs
- UniqueEventHelper.cs
- LifetimeMonitor.cs
- ExceptionUtil.cs
- Annotation.cs
- DesignerListAdapter.cs
- CurrentTimeZone.cs
- XPathArrayIterator.cs
- BamlResourceSerializer.cs
- LinqDataSourceInsertEventArgs.cs
- CollectionsUtil.cs
- ScrollBarRenderer.cs
- HttpWebResponse.cs
- PropertyChangedEventArgs.cs
- OverflowException.cs
- XmlSchemaElement.cs
- ConvertersCollection.cs
- DesignTimeVisibleAttribute.cs
- X509IssuerSerialKeyIdentifierClause.cs
- ConversionContext.cs
- RandomNumberGenerator.cs
- sqlser.cs
- InProcStateClientManager.cs
- FieldNameLookup.cs
- Point4D.cs
- SqlRetyper.cs
- DataGridItem.cs
- CheckPair.cs
- DataDesignUtil.cs
- EntityDataReader.cs
- CultureSpecificStringDictionary.cs