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
- AttachmentService.cs
- DbTransaction.cs
- Icon.cs
- TaiwanLunisolarCalendar.cs
- ExtensionQuery.cs
- ISFClipboardData.cs
- SchemaImporterExtensionElement.cs
- AssemblyAttributes.cs
- GridProviderWrapper.cs
- CalendarDesigner.cs
- InkCanvasFeedbackAdorner.cs
- CheckBoxBaseAdapter.cs
- _ChunkParse.cs
- X509Certificate2Collection.cs
- GenericWebPart.cs
- ApplicationServiceHelper.cs
- SqlIdentifier.cs
- InvariantComparer.cs
- _Rfc2616CacheValidators.cs
- MultiBindingExpression.cs
- TheQuery.cs
- RenameRuleObjectDialog.cs
- XmlFormatExtensionPrefixAttribute.cs
- DesignerView.xaml.cs
- BinaryObjectWriter.cs
- CatalogZone.cs
- DesignerView.cs
- NetSectionGroup.cs
- PointAnimation.cs
- glyphs.cs
- TextDecorationCollection.cs
- Border.cs
- SqlDependency.cs
- HtmlElementEventArgs.cs
- ErrorsHelper.cs
- DetailsViewDeleteEventArgs.cs
- ToolStripButton.cs
- TableItemPattern.cs
- Parser.cs
- OwnerDrawPropertyBag.cs
- NumericUpDownAcceleration.cs
- Context.cs
- SqlConnectionHelper.cs
- TrackingDataItem.cs
- CngProperty.cs
- SystemNetworkInterface.cs
- RSACryptoServiceProvider.cs
- RectAnimationBase.cs
- XmlSchemaExporter.cs
- PenThreadPool.cs
- CheckBoxFlatAdapter.cs
- DataGridViewSelectedColumnCollection.cs
- DocumentViewerHelper.cs
- DataListGeneralPage.cs
- AutoGeneratedFieldProperties.cs
- DefaultWorkflowLoaderService.cs
- webproxy.cs
- SaveFileDialog.cs
- ObjectDataSourceEventArgs.cs
- DataGridViewRowsRemovedEventArgs.cs
- XmlRootAttribute.cs
- XmlnsCompatibleWithAttribute.cs
- GlyphInfoList.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- TypeSystem.cs
- _ConnectOverlappedAsyncResult.cs
- ConsoleCancelEventArgs.cs
- ObjectDataSourceEventArgs.cs
- LayeredChannelFactory.cs
- UnknownBitmapDecoder.cs
- TextBoxView.cs
- SqlBulkCopyColumnMappingCollection.cs
- SynchronizedDispatch.cs
- DmlSqlGenerator.cs
- ComponentChangingEvent.cs
- ServerValidateEventArgs.cs
- HttpResponse.cs
- TopClause.cs
- PerfCounterSection.cs
- MenuRendererStandards.cs
- PlacementWorkspace.cs
- ReferenceConverter.cs
- Convert.cs
- WebScriptServiceHost.cs
- Int64Storage.cs
- PropertyCondition.cs
- AnnotationHelper.cs
- CheckBoxList.cs
- HostedHttpRequestAsyncResult.cs
- SharedPerformanceCounter.cs
- TemplateControlParser.cs
- CustomError.cs
- KoreanCalendar.cs
- GetPageNumberCompletedEventArgs.cs
- DataServiceProviderMethods.cs
- GenericEnumConverter.cs
- BindingGroup.cs
- TypedReference.cs
- RangeValueProviderWrapper.cs
- StaticSiteMapProvider.cs