Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / StyleSelector.cs / 1305600 / StyleSelector.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: StyleSelector allows the app writer to provide custom style selection logic. // // Specs: http://avalon/connecteddata/M5%20General%20Docs/Data%20Styling.mht // //--------------------------------------------------------------------------- using System.Windows.Shapes; using System.Windows.Media; using System.Windows.Data; using System.ComponentModel; using System; namespace System.Windows.Controls { ////// public class StyleSelector { ////// StyleSelector allows the app writer to provide custom style selection logic. /// For example, with a class Bug as the Content, /// use a particular style for Pri1 bugs and a different style for Pri2 bugs. ///
////// An application writer can override the SelectStyle method in a derived /// selector class and assign an instance of this class to the StyleSelector property on ///
///class. /// /// Override this method to return an app specific /// The data content /// The element to which the style will be applied ///. /// an app-specific style to apply, or null. public virtual Style SelectStyle(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
- VBIdentifierDesigner.xaml.cs
- PrivilegeNotHeldException.cs
- Polygon.cs
- Label.cs
- COM2PropertyDescriptor.cs
- SqlDataSourceConfigureFilterForm.cs
- BufferCache.cs
- AttachmentCollection.cs
- NetSectionGroup.cs
- ScrollChrome.cs
- HttpHandlerActionCollection.cs
- ObjectDataSourceDisposingEventArgs.cs
- MetaTable.cs
- PenThreadPool.cs
- TableLayoutPanel.cs
- UpdateCommand.cs
- PropertyInfoSet.cs
- RawUIStateInputReport.cs
- NotImplementedException.cs
- CachedTypeface.cs
- Predicate.cs
- ObjectSerializerFactory.cs
- LayoutInformation.cs
- datacache.cs
- WorkflowClientDeliverMessageWrapper.cs
- IPAddress.cs
- ThreadSafeList.cs
- CallSite.cs
- MemoryPressure.cs
- TabControlAutomationPeer.cs
- StylusButtonCollection.cs
- CqlWriter.cs
- BitmapEffectDrawing.cs
- AdornedElementPlaceholder.cs
- Util.cs
- XPathCompileException.cs
- SingleAnimationBase.cs
- ValidationRule.cs
- ExpressionNode.cs
- TabOrder.cs
- SafeEventLogReadHandle.cs
- WebResourceUtil.cs
- MessageBox.cs
- MarkerProperties.cs
- WriteFileContext.cs
- ActivityMetadata.cs
- FullTextState.cs
- NumericPagerField.cs
- DbConnectionOptions.cs
- _ScatterGatherBuffers.cs
- BindingNavigator.cs
- ClientProxyGenerator.cs
- Image.cs
- TimeSpanValidator.cs
- ToolStripPanel.cs
- BaseCodeDomTreeGenerator.cs
- WmfPlaceableFileHeader.cs
- ComponentSerializationService.cs
- ExpressionSelection.cs
- DecoderFallbackWithFailureFlag.cs
- AttributeEmitter.cs
- SqlRowUpdatedEvent.cs
- QueueProcessor.cs
- QueryCacheKey.cs
- RawAppCommandInputReport.cs
- CfgParser.cs
- ParagraphVisual.cs
- SQLInt16Storage.cs
- JpegBitmapDecoder.cs
- CodeDirectionExpression.cs
- DataTemplateSelector.cs
- VideoDrawing.cs
- StorageEndPropertyMapping.cs
- ToolStripItemImageRenderEventArgs.cs
- TreeNodeStyle.cs
- PrimitiveList.cs
- ipaddressinformationcollection.cs
- Pair.cs
- XNodeValidator.cs
- TitleStyle.cs
- _RequestCacheProtocol.cs
- CodeTypeMember.cs
- COM2ICategorizePropertiesHandler.cs
- SymLanguageType.cs
- SearchExpression.cs
- ReferencedAssembly.cs
- Atom10FormatterFactory.cs
- PriorityQueue.cs
- SignedPkcs7.cs
- MemoryPressure.cs
- ZipPackage.cs
- ScrollContentPresenter.cs
- CommentEmitter.cs
- Zone.cs
- MetadataCollection.cs
- InputLangChangeEvent.cs
- FragmentNavigationEventArgs.cs
- ClientScriptManager.cs
- SingletonConnectionReader.cs
- _UriTypeConverter.cs