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
- Console.cs
- SafeFileMappingHandle.cs
- COMException.cs
- PropagatorResult.cs
- ToolStripItemImageRenderEventArgs.cs
- SliderAutomationPeer.cs
- InputMethodStateTypeInfo.cs
- Visual3D.cs
- BrushValueSerializer.cs
- FillErrorEventArgs.cs
- Shape.cs
- DataServiceQueryOfT.cs
- ListViewInsertionMark.cs
- FragmentNavigationEventArgs.cs
- EntityContainerEntitySet.cs
- EventDriven.cs
- PriorityRange.cs
- _ListenerResponseStream.cs
- CrossContextChannel.cs
- List.cs
- TranslateTransform3D.cs
- HtmlInputPassword.cs
- TextEffect.cs
- AmbientLight.cs
- XmlSchemaException.cs
- ExceptionRoutedEventArgs.cs
- PixelShader.cs
- DropShadowEffect.cs
- OpenTypeLayout.cs
- CompModSwitches.cs
- RegexCharClass.cs
- TextServicesCompartment.cs
- _RequestCacheProtocol.cs
- MSG.cs
- KeyValuePair.cs
- BuildDependencySet.cs
- Serializer.cs
- OdbcInfoMessageEvent.cs
- TCPClient.cs
- SoapClientProtocol.cs
- DbReferenceCollection.cs
- DefaultBindingPropertyAttribute.cs
- RangeValidator.cs
- DispatcherHookEventArgs.cs
- SecureStringHasher.cs
- DataGridViewComboBoxColumn.cs
- RequestContext.cs
- SoapSchemaMember.cs
- ExclusiveNamedPipeTransportManager.cs
- InputDevice.cs
- DocumentPageTextView.cs
- COAUTHINFO.cs
- ListViewDataItem.cs
- RenderTargetBitmap.cs
- UnsafeNativeMethods.cs
- PropertyConverter.cs
- ColorMatrix.cs
- DeploymentExceptionMapper.cs
- UnsafeNativeMethodsTablet.cs
- _emptywebproxy.cs
- FaultConverter.cs
- MachineKeySection.cs
- XmlSchemaAppInfo.cs
- DbParameterHelper.cs
- OutputCacheProfile.cs
- SqlCacheDependencySection.cs
- XmlNullResolver.cs
- EventSchemaTraceListener.cs
- Table.cs
- PropertyDescriptorGridEntry.cs
- HttpCachePolicyElement.cs
- AsymmetricSignatureFormatter.cs
- SafeNativeMemoryHandle.cs
- CodeGroup.cs
- OdbcReferenceCollection.cs
- FamilyTypeface.cs
- Menu.cs
- MsmqInputChannelBase.cs
- SqlBuilder.cs
- LogRestartAreaEnumerator.cs
- SplineKeyFrames.cs
- SymmetricKey.cs
- ZipIOFileItemStream.cs
- BatchStream.cs
- XmlSchemaSequence.cs
- KeyEventArgs.cs
- StringResourceManager.cs
- shaper.cs
- WebResourceAttribute.cs
- XslException.cs
- SqlDataSourceStatusEventArgs.cs
- SqlPersonalizationProvider.cs
- XPathMultyIterator.cs
- LineSegment.cs
- ChtmlSelectionListAdapter.cs
- _ChunkParse.cs
- DllNotFoundException.cs
- CodeDomSerializerException.cs
- ExpressionTextBoxAutomationPeer.cs
- RenderTargetBitmap.cs