Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Controls / StyleSelector.cs / 1 / StyleSelector.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: StyleSelector allows the app writer to provide custom style selection logic. // // Specs: [....]/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
- PartialToken.cs
- ListControlConvertEventArgs.cs
- LineGeometry.cs
- OutputCache.cs
- RemotingServices.cs
- Rotation3DAnimationBase.cs
- FaultContractAttribute.cs
- Configuration.cs
- HttpServerVarsCollection.cs
- SimpleTextLine.cs
- EntityContainer.cs
- PaperSource.cs
- StrokeCollectionDefaultValueFactory.cs
- ConfigurationElementCollection.cs
- HttpRequestContext.cs
- NewItemsContextMenuStrip.cs
- LinkUtilities.cs
- FrameworkContentElementAutomationPeer.cs
- Converter.cs
- AsymmetricSecurityProtocolFactory.cs
- DynamicPropertyHolder.cs
- SqlProcedureAttribute.cs
- SecurityCredentialsManager.cs
- MLangCodePageEncoding.cs
- ReadContentAsBinaryHelper.cs
- X509ClientCertificateAuthenticationElement.cs
- Stopwatch.cs
- SqlMethodTransformer.cs
- AuthenticationConfig.cs
- FieldTemplateFactory.cs
- GeneralTransform3D.cs
- XhtmlBasicCalendarAdapter.cs
- RtfToXamlReader.cs
- CryptographicAttribute.cs
- MILUtilities.cs
- ApplicationHost.cs
- InstalledFontCollection.cs
- TrackingStringDictionary.cs
- SqlTransaction.cs
- PingOptions.cs
- Point4DConverter.cs
- SourceSwitch.cs
- SafeUserTokenHandle.cs
- FolderLevelBuildProvider.cs
- CompressionTransform.cs
- FontStretch.cs
- MaterialCollection.cs
- PerformanceCounterNameAttribute.cs
- ErasingStroke.cs
- Environment.cs
- SymLanguageVendor.cs
- UnsettableComboBox.cs
- SafeLibraryHandle.cs
- HitTestParameters3D.cs
- MailDefinition.cs
- PagerStyle.cs
- CryptoApi.cs
- MonitoringDescriptionAttribute.cs
- MobileCategoryAttribute.cs
- ToolbarAUtomationPeer.cs
- CompilationSection.cs
- WindowsScrollBar.cs
- COM2PictureConverter.cs
- NaturalLanguageHyphenator.cs
- UriScheme.cs
- HuffCodec.cs
- EntityProviderServices.cs
- ToolStripTemplateNode.cs
- CodeVariableReferenceExpression.cs
- ResourceAttributes.cs
- DataGridViewColumnEventArgs.cs
- ConstructorBuilder.cs
- DbParameterCollectionHelper.cs
- PathFigure.cs
- IODescriptionAttribute.cs
- NativeMethods.cs
- BaseUriWithWildcard.cs
- EntitySqlQueryBuilder.cs
- ToolStripDropDownClosedEventArgs.cs
- ResourceDescriptionAttribute.cs
- UnsafeNativeMethods.cs
- SapiRecoContext.cs
- GlyphRun.cs
- Empty.cs
- SourceFilter.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- NamespaceDisplayAutomationPeer.cs
- IOThreadScheduler.cs
- ScriptServiceAttribute.cs
- EntityDataSourceDesignerHelper.cs
- NamespaceExpr.cs
- DateTimeSerializationSection.cs
- LoginView.cs
- SamlConstants.cs
- ControlBuilderAttribute.cs
- ApplicationCommands.cs
- ObjectItemAttributeAssemblyLoader.cs
- RelationalExpressions.cs
- CommandLineParser.cs
- ImageSourceValueSerializer.cs