Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ErrorRuntimeConfig.cs
- DataObjectFieldAttribute.cs
- EditorResources.cs
- GeneralTransformGroup.cs
- PartialList.cs
- ClientFormsIdentity.cs
- RepeaterItem.cs
- TextBoxBaseDesigner.cs
- RepeaterItemEventArgs.cs
- _OSSOCK.cs
- BindValidationContext.cs
- AppDomainFactory.cs
- GroupItemAutomationPeer.cs
- CmsUtils.cs
- SelectQueryOperator.cs
- XmlSerializerFactory.cs
- FileBasedResourceGroveler.cs
- NativeMethods.cs
- AddInDeploymentState.cs
- PtsCache.cs
- BinaryMessageEncoder.cs
- HMACRIPEMD160.cs
- Enlistment.cs
- ExplicitDiscriminatorMap.cs
- ServiceMemoryGates.cs
- Walker.cs
- PolyQuadraticBezierSegment.cs
- MultiAsyncResult.cs
- AutomationFocusChangedEventArgs.cs
- FactoryRecord.cs
- ExpressionConverter.cs
- HttpModuleCollection.cs
- RegisteredHiddenField.cs
- HttpException.cs
- SpeechDetectedEventArgs.cs
- ZipIOCentralDirectoryFileHeader.cs
- CanonicalFontFamilyReference.cs
- EmptyStringExpandableObjectConverter.cs
- MessageAction.cs
- WebPartConnectionsConnectVerb.cs
- InternalEnumValidator.cs
- BindableTemplateBuilder.cs
- XPathDescendantIterator.cs
- TreeViewItem.cs
- ArrayTypeMismatchException.cs
- TiffBitmapDecoder.cs
- TdsParameterSetter.cs
- CollectionMarkupSerializer.cs
- DataGridColumn.cs
- MobilePage.cs
- ImageCodecInfo.cs
- RowSpanVector.cs
- XmlResolver.cs
- XmlSchemaSet.cs
- ProxySimple.cs
- ContentOperations.cs
- SynchronizedPool.cs
- PeerNameRecord.cs
- DisableDpiAwarenessAttribute.cs
- TagNameToTypeMapper.cs
- TypeCodeDomSerializer.cs
- BitmapDecoder.cs
- TypedAsyncResult.cs
- RegexInterpreter.cs
- DataGridPagerStyle.cs
- remotingproxy.cs
- TextEditorLists.cs
- GenericUriParser.cs
- PatternMatchRules.cs
- IItemContainerGenerator.cs
- Win32PrintDialog.cs
- XmlDownloadManager.cs
- BasePattern.cs
- pingexception.cs
- UserInitiatedNavigationPermission.cs
- MetabaseServerConfig.cs
- OleDbException.cs
- TextSpan.cs
- CompilationUnit.cs
- GradientBrush.cs
- WindowsTreeView.cs
- SerializableAttribute.cs
- SQLConvert.cs
- ItemType.cs
- diagnosticsswitches.cs
- CaretElement.cs
- XmlChildNodes.cs
- ResolveNameEventArgs.cs
- Int32Converter.cs
- XPathNodePointer.cs
- DataGridBoolColumn.cs
- LocalValueEnumerator.cs
- BulletChrome.cs
- UserControlCodeDomTreeGenerator.cs
- DesignRelation.cs
- SlotInfo.cs
- Dynamic.cs
- HandlerFactoryWrapper.cs
- PartitionerStatic.cs
- Context.cs