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
- OleDbRowUpdatedEvent.cs
- CurrentChangedEventManager.cs
- IOThreadTimer.cs
- ArraySegment.cs
- Win32PrintDialog.cs
- WebPartTransformerCollection.cs
- BitmapData.cs
- XPathDescendantIterator.cs
- DefaultValueConverter.cs
- DummyDataSource.cs
- DataGridRowHeaderAutomationPeer.cs
- Math.cs
- DesignerForm.cs
- UInt16.cs
- BezierSegment.cs
- Listbox.cs
- FocusChangedEventArgs.cs
- ThreadStateException.cs
- XhtmlBasicValidatorAdapter.cs
- LocalTransaction.cs
- DocumentPageViewAutomationPeer.cs
- BitStream.cs
- TextCompositionEventArgs.cs
- EncoderParameters.cs
- StackBuilderSink.cs
- XdrBuilder.cs
- ReflectionTypeLoadException.cs
- ManagementDateTime.cs
- FrameworkContentElement.cs
- SqlRetyper.cs
- XmlSiteMapProvider.cs
- DiagnosticTrace.cs
- BaseValidator.cs
- BinaryCommonClasses.cs
- Rect.cs
- WindowsFormsLinkLabel.cs
- HMAC.cs
- RegexTree.cs
- DefaultTextStore.cs
- CodeValidator.cs
- IDQuery.cs
- LayoutEvent.cs
- ToolStripHighContrastRenderer.cs
- NumberSubstitution.cs
- TextUtf8RawTextWriter.cs
- WebPartConnectionsConnectVerb.cs
- OlePropertyStructs.cs
- RpcCryptoRequest.cs
- SettingsPropertyNotFoundException.cs
- TabItem.cs
- LOSFormatter.cs
- Menu.cs
- EntityClientCacheKey.cs
- BitVector32.cs
- UInt16Converter.cs
- CodeObject.cs
- HtmlTableRowCollection.cs
- StorageConditionPropertyMapping.cs
- ExpandSegmentCollection.cs
- DefaultWorkflowSchedulerService.cs
- TargetInvocationException.cs
- MarshalDirectiveException.cs
- ActivityBindForm.Designer.cs
- DataGridViewCellValidatingEventArgs.cs
- EmptyStringExpandableObjectConverter.cs
- HostingEnvironmentException.cs
- HtmlTernaryTree.cs
- DirectoryRootQuery.cs
- RightsManagementUser.cs
- Msmq4PoisonHandler.cs
- CanonicalFontFamilyReference.cs
- TextParentUndoUnit.cs
- AutomationPatternInfo.cs
- PointAnimationUsingPath.cs
- ParseElement.cs
- ComboBoxAutomationPeer.cs
- MergeLocalizationDirectives.cs
- HtmlElementErrorEventArgs.cs
- VersionedStream.cs
- SmiContext.cs
- Form.cs
- CmsInterop.cs
- DelegatingTypeDescriptionProvider.cs
- HandlerFactoryCache.cs
- CatalogZone.cs
- ACL.cs
- ToolStripSystemRenderer.cs
- entitydatasourceentitysetnameconverter.cs
- GeometryModel3D.cs
- ListControl.cs
- DocumentPage.cs
- Matrix3DStack.cs
- AnimatedTypeHelpers.cs
- StringWriter.cs
- DataControlImageButton.cs
- InternalDispatchObject.cs
- EntryIndex.cs
- CodeSnippetTypeMember.cs
- GridPatternIdentifiers.cs
- RepeaterItemEventArgs.cs