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
- BitmapPalette.cs
- Cursors.cs
- ExpressionList.cs
- PositiveTimeSpanValidatorAttribute.cs
- TypeElement.cs
- Animatable.cs
- PropertyAccessVisitor.cs
- ComEventsHelper.cs
- PropertySegmentSerializer.cs
- DataGridViewTopRowAccessibleObject.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- DescendantOverDescendantQuery.cs
- CommonObjectSecurity.cs
- EventDriven.cs
- IPipelineRuntime.cs
- XmlTypeMapping.cs
- MemoryRecordBuffer.cs
- HMACRIPEMD160.cs
- AlignmentYValidation.cs
- MemoryMappedFile.cs
- HttpModuleActionCollection.cs
- Options.cs
- XhtmlCssHandler.cs
- TwoPhaseCommitProxy.cs
- SQLDateTimeStorage.cs
- XmlSchemaFacet.cs
- WindowsSpinner.cs
- XmlNavigatorFilter.cs
- Attributes.cs
- DataBinding.cs
- CancellationToken.cs
- CookieProtection.cs
- MediaSystem.cs
- PropertyTabChangedEvent.cs
- GradientBrush.cs
- CheckBoxField.cs
- Table.cs
- UriTemplateClientFormatter.cs
- GPRECTF.cs
- ConsoleCancelEventArgs.cs
- ChangeToolStripParentVerb.cs
- ArgumentDesigner.xaml.cs
- FixUp.cs
- ExtensionFile.cs
- Internal.cs
- ToolTip.cs
- ColorTransform.cs
- ComponentGlyph.cs
- ParagraphVisual.cs
- LoginView.cs
- DbConnectionPoolGroup.cs
- CustomAssemblyResolver.cs
- NegationPusher.cs
- Base64Stream.cs
- DataGridCell.cs
- XmlChildEnumerator.cs
- HtmlFormWrapper.cs
- HebrewNumber.cs
- MultiSelector.cs
- CookieHandler.cs
- MemberInfoSerializationHolder.cs
- CompiledRegexRunnerFactory.cs
- Slider.cs
- RenamedEventArgs.cs
- DynamicPropertyReader.cs
- CodeTypeDeclaration.cs
- DbCommandDefinition.cs
- SRGSCompiler.cs
- MetadataItemEmitter.cs
- SecurityDescriptor.cs
- TemplateField.cs
- WindowsRebar.cs
- WebPartUserCapability.cs
- DetailsViewPagerRow.cs
- QEncodedStream.cs
- OleDbMetaDataFactory.cs
- Constraint.cs
- DataStreamFromComStream.cs
- XPathConvert.cs
- ResetableIterator.cs
- ScriptManagerProxy.cs
- MimeTypeAttribute.cs
- TextFormatterImp.cs
- MemberInfoSerializationHolder.cs
- Normalization.cs
- ClientTarget.cs
- ContentFileHelper.cs
- FlowDocumentPage.cs
- TreeNodeBinding.cs
- InfoCardAsymmetricCrypto.cs
- HttpListenerContext.cs
- RangeBase.cs
- SiteMap.cs
- ResizeBehavior.cs
- WebEvents.cs
- ObjectDataSourceSelectingEventArgs.cs
- SinglePageViewer.cs
- PopupRoot.cs
- ClearTypeHintValidation.cs
- PeerSecurityHelpers.cs