Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- AssemblyResourceLoader.cs
- HtmlInputFile.cs
- MiniConstructorInfo.cs
- WorkflowTransactionOptions.cs
- TextAutomationPeer.cs
- WebPartTransformerAttribute.cs
- JournalEntryStack.cs
- XmlSchemaValidator.cs
- SystemGatewayIPAddressInformation.cs
- FormClosedEvent.cs
- Matrix.cs
- MediaElement.cs
- CompiledQueryCacheKey.cs
- ObjectDisposedException.cs
- DataGridState.cs
- KeyedCollection.cs
- PositiveTimeSpanValidatorAttribute.cs
- GuidelineCollection.cs
- TextBoxDesigner.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- SingletonChannelAcceptor.cs
- SmtpAuthenticationManager.cs
- designeractionbehavior.cs
- DefaultTextStoreTextComposition.cs
- AspNetSynchronizationContext.cs
- CollectionBase.cs
- CheckBoxBaseAdapter.cs
- DataControlFieldCollection.cs
- LoginUtil.cs
- AlphabeticalEnumConverter.cs
- MessageSecurityProtocolFactory.cs
- TimerElapsedEvenArgs.cs
- IndexerReference.cs
- XamlDesignerSerializationManager.cs
- DbModificationClause.cs
- XmlDeclaration.cs
- ProcessThreadDesigner.cs
- SpotLight.cs
- BrowserDefinition.cs
- OutOfMemoryException.cs
- FontStretches.cs
- JsonQNameDataContract.cs
- ErrorRuntimeConfig.cs
- PageAsyncTask.cs
- HttpMethodAttribute.cs
- StringFunctions.cs
- MemberProjectedSlot.cs
- Mouse.cs
- FeatureManager.cs
- RegionData.cs
- ActivityExecutor.cs
- OdbcErrorCollection.cs
- TextSearch.cs
- FrameworkContextData.cs
- InheritanceAttribute.cs
- NetNamedPipeBinding.cs
- HttpWriter.cs
- FullTextBreakpoint.cs
- Composition.cs
- DictionarySurrogate.cs
- SingleAnimationUsingKeyFrames.cs
- AlphaSortedEnumConverter.cs
- ErrorRuntimeConfig.cs
- MachineKeySection.cs
- EncryptedXml.cs
- WebPartConnectionsCancelEventArgs.cs
- XmlQueryContext.cs
- AlignmentXValidation.cs
- DefaultAsyncDataDispatcher.cs
- StateItem.cs
- ToolStripSplitStackLayout.cs
- EnumValAlphaComparer.cs
- MembershipUser.cs
- Cursors.cs
- ConstructorExpr.cs
- LinkClickEvent.cs
- ScriptControlDescriptor.cs
- KeyBinding.cs
- ActivityCollectionMarkupSerializer.cs
- EntityViewGenerationConstants.cs
- MonitoringDescriptionAttribute.cs
- SystemIcons.cs
- RawStylusInputCustomDataList.cs
- JournalEntryListConverter.cs
- Keywords.cs
- CheckBox.cs
- ClrPerspective.cs
- CloseSequenceResponse.cs
- SettingsPropertyWrongTypeException.cs
- MutexSecurity.cs
- GlyphInfoList.cs
- ObjectContext.cs
- CodeSnippetTypeMember.cs
- ThemeInfoAttribute.cs
- XmlElementList.cs
- XmlSchemaNotation.cs
- DifferencingCollection.cs
- InstanceData.cs
- TreeViewItem.cs
- GZipUtils.cs