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
- ColumnTypeConverter.cs
- MenuBase.cs
- FileChangesMonitor.cs
- PanelStyle.cs
- RegionIterator.cs
- DataColumn.cs
- RequestQueue.cs
- UnsafeNativeMethods.cs
- UserPreferenceChangedEventArgs.cs
- Pkcs7Signer.cs
- EntityClientCacheKey.cs
- PageFunction.cs
- FlowDocumentPageViewerAutomationPeer.cs
- SafeHGlobalHandleCritical.cs
- WebResponse.cs
- DataView.cs
- XmlDesignerDataSourceView.cs
- SessionState.cs
- xamlnodes.cs
- InstallerTypeAttribute.cs
- X509Certificate.cs
- RawKeyboardInputReport.cs
- PageThemeCodeDomTreeGenerator.cs
- Pts.cs
- QilFactory.cs
- FacetEnabledSchemaElement.cs
- AutomationTextAttribute.cs
- CharUnicodeInfo.cs
- SequenceDesigner.cs
- RC2CryptoServiceProvider.cs
- IncrementalReadDecoders.cs
- NativeActivityFaultContext.cs
- UdpUtility.cs
- ContextQuery.cs
- TextBoxDesigner.cs
- TextFindEngine.cs
- ScalarConstant.cs
- DataIdProcessor.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- AutomationIdentifier.cs
- SmiEventSink.cs
- SwitchAttribute.cs
- SqlWorkflowPersistenceService.cs
- ForceCopyBuildProvider.cs
- TokenBasedSetEnumerator.cs
- PrePrepareMethodAttribute.cs
- FtpWebRequest.cs
- EventLogTraceListener.cs
- VisualTarget.cs
- DateTimeParse.cs
- XPathPatternParser.cs
- ReliabilityContractAttribute.cs
- Int64AnimationUsingKeyFrames.cs
- SqlConnectionFactory.cs
- ViewEventArgs.cs
- WebBrowsableAttribute.cs
- ConfigurationElementCollection.cs
- OleDbParameter.cs
- BindingList.cs
- StreamResourceInfo.cs
- CodeSnippetTypeMember.cs
- CodeDOMProvider.cs
- PrivacyNoticeElement.cs
- GetKeyedHashRequest.cs
- ScalarConstant.cs
- RequestCachePolicy.cs
- GorillaCodec.cs
- NamespaceCollection.cs
- GenericTypeParameterBuilder.cs
- ShadowGlyph.cs
- AppDomainProtocolHandler.cs
- WebPartDescription.cs
- AuthenticationModeHelper.cs
- MailDefinition.cs
- InkPresenterAutomationPeer.cs
- SiteMap.cs
- WebBrowserDesigner.cs
- DataShape.cs
- ClientType.cs
- HtmlInputCheckBox.cs
- VisualStyleElement.cs
- SafeRegistryKey.cs
- MSAAWinEventWrap.cs
- LambdaReference.cs
- altserialization.cs
- ChangePassword.cs
- DataGridRow.cs
- ComponentChangedEvent.cs
- SingleConverter.cs
- BitmapPalettes.cs
- TypeUtil.cs
- XPathMultyIterator.cs
- PersistenceProviderDirectory.cs
- Nullable.cs
- TextOutput.cs
- ObjectQuery.cs
- WinEventTracker.cs
- ServiceDesigner.cs
- ToolboxDataAttribute.cs
- SessionPageStateSection.cs