Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- CacheSection.cs
- EntityDataSourceSelectedEventArgs.cs
- FlowDocument.cs
- CrossContextChannel.cs
- GetPageNumberCompletedEventArgs.cs
- DifferencingCollection.cs
- HandlerElementCollection.cs
- DES.cs
- TripleDESCryptoServiceProvider.cs
- RSAOAEPKeyExchangeDeformatter.cs
- BuiltInExpr.cs
- ToolBarDesigner.cs
- cryptoapiTransform.cs
- Rotation3DAnimationUsingKeyFrames.cs
- SafeEventLogReadHandle.cs
- GrowingArray.cs
- StronglyTypedResourceBuilder.cs
- querybuilder.cs
- SmtpNetworkElement.cs
- SQLInt64.cs
- ShaperBuffers.cs
- DataGridTableCollection.cs
- UICuesEvent.cs
- ToolStripSeparatorRenderEventArgs.cs
- HGlobalSafeHandle.cs
- RegistrationContext.cs
- HttpRuntime.cs
- LayoutExceptionEventArgs.cs
- BypassElement.cs
- UIElement3D.cs
- OdbcErrorCollection.cs
- selecteditemcollection.cs
- NativeMethods.cs
- EpmContentDeSerializer.cs
- IndexedEnumerable.cs
- SizeIndependentAnimationStorage.cs
- WebPartHelpVerb.cs
- ConstantExpression.cs
- ResourceKey.cs
- BitmapSource.cs
- _MultipleConnectAsync.cs
- NativeRecognizer.cs
- GifBitmapEncoder.cs
- HtmlInputControl.cs
- hwndwrapper.cs
- Label.cs
- CounterSample.cs
- EntityClassGenerator.cs
- SystemWebExtensionsSectionGroup.cs
- ScriptingAuthenticationServiceSection.cs
- WizardStepBase.cs
- EpmContentDeSerializer.cs
- ListViewGroup.cs
- BehaviorService.cs
- IfElseDesigner.xaml.cs
- ProfileSettings.cs
- HostingEnvironmentException.cs
- CodeSnippetTypeMember.cs
- RedirectionProxy.cs
- OracleBinary.cs
- EncoderNLS.cs
- WaitForChangedResult.cs
- SuppressMergeCheckAttribute.cs
- HtmlListAdapter.cs
- SelectedGridItemChangedEvent.cs
- InputMethod.cs
- SafeNativeMethods.cs
- _NetworkingPerfCounters.cs
- TreeNodeEventArgs.cs
- DesignerObject.cs
- ConfigurationSectionGroupCollection.cs
- DataListItemEventArgs.cs
- SqlDataReaderSmi.cs
- PasswordRecoveryDesigner.cs
- FloaterParaClient.cs
- EncryptedXml.cs
- QueryOpeningEnumerator.cs
- WebPartDescription.cs
- Binding.cs
- FileDialogCustomPlace.cs
- BinaryObjectWriter.cs
- HttpRequestCacheValidator.cs
- XmlSchemaSimpleContentRestriction.cs
- SQLCharsStorage.cs
- ImportContext.cs
- CanonicalFontFamilyReference.cs
- ProtocolsConfiguration.cs
- WindowsServiceCredential.cs
- SingleResultAttribute.cs
- DtrList.cs
- DnsEndpointIdentity.cs
- DataGridViewTopRowAccessibleObject.cs
- DynamicRouteExpression.cs
- TimeSpanParse.cs
- TemplatePagerField.cs
- BrowsableAttribute.cs
- RegexCapture.cs
- SignedXmlDebugLog.cs
- ThreadBehavior.cs
- ProfileElement.cs