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
- FixedTextContainer.cs
- Types.cs
- MouseGesture.cs
- TreeView.cs
- CdpEqualityComparer.cs
- ContextStaticAttribute.cs
- ErrorView.xaml.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- RegionIterator.cs
- ReferenceEqualityComparer.cs
- UInt64Storage.cs
- ToolBar.cs
- RemotingException.cs
- SessionStateContainer.cs
- ResourceSet.cs
- WebBrowserEvent.cs
- WebBrowserSiteBase.cs
- DecoderReplacementFallback.cs
- AdornerLayer.cs
- LocalizableAttribute.cs
- ComponentEditorPage.cs
- TableCell.cs
- DiscoveryDocumentSerializer.cs
- ParameterReplacerVisitor.cs
- CheckBoxField.cs
- RemotingException.cs
- IntSecurity.cs
- TextModifier.cs
- EventLog.cs
- ExpressionParser.cs
- KnownBoxes.cs
- DataSourceCache.cs
- SettingsSection.cs
- _SslSessionsCache.cs
- QueryGeneratorBase.cs
- SpecialFolderEnumConverter.cs
- DoubleLink.cs
- SecurityException.cs
- ObjectTag.cs
- MatrixValueSerializer.cs
- BitmapData.cs
- DataGridViewRowCollection.cs
- CodeCommentStatement.cs
- DictionaryBase.cs
- BadImageFormatException.cs
- ParserStack.cs
- UnmanagedMemoryStreamWrapper.cs
- SingleAnimationUsingKeyFrames.cs
- AssemblyResourceLoader.cs
- HebrewNumber.cs
- PixelFormats.cs
- TextServicesProperty.cs
- BindingListCollectionView.cs
- SendMailErrorEventArgs.cs
- ObjectViewEntityCollectionData.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- SevenBitStream.cs
- DoubleAnimationClockResource.cs
- Int64AnimationUsingKeyFrames.cs
- SingleQueryOperator.cs
- ValueQuery.cs
- MouseEvent.cs
- RsaSecurityToken.cs
- HMACSHA384.cs
- MetadataItem_Static.cs
- Part.cs
- BitmapFrame.cs
- RestHandler.cs
- Control.cs
- CapiSymmetricAlgorithm.cs
- ToolStripPanelDesigner.cs
- HttpInputStream.cs
- CommentAction.cs
- MemoryStream.cs
- AssemblyInfo.cs
- DeploymentExceptionMapper.cs
- DataGridViewLinkColumn.cs
- FlowDocumentPage.cs
- AssemblyBuilder.cs
- ReflectPropertyDescriptor.cs
- TemplateXamlTreeBuilder.cs
- TextEditorTables.cs
- ObjectSecurity.cs
- XmlWellformedWriter.cs
- GeometryDrawing.cs
- Vector3DCollectionValueSerializer.cs
- CompileXomlTask.cs
- RegexGroupCollection.cs
- VisualStateGroup.cs
- DiagnosticsConfiguration.cs
- ConfigXmlElement.cs
- util.cs
- SchemaMapping.cs
- X509UI.cs
- WindowVisualStateTracker.cs
- LiteralControl.cs
- DistributedTransactionPermission.cs
- DataColumnMapping.cs
- SemanticAnalyzer.cs
- SignatureDescription.cs