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
- Utils.cs
- AnnotationComponentChooser.cs
- DataGridViewMethods.cs
- WindowsTab.cs
- StringFreezingAttribute.cs
- IteratorFilter.cs
- TrustManager.cs
- WebPartConnectionsCloseVerb.cs
- MenuItem.cs
- WebPartConnectionsConfigureVerb.cs
- SetterBase.cs
- XmlCountingReader.cs
- PartitionResolver.cs
- CacheEntry.cs
- XmlObjectSerializerReadContextComplex.cs
- OpCopier.cs
- WebPartsPersonalizationAuthorization.cs
- BaseTemplateBuildProvider.cs
- NotifyIcon.cs
- FactoryGenerator.cs
- SqlUserDefinedTypeAttribute.cs
- SQLConvert.cs
- CodeSnippetTypeMember.cs
- TextServicesManager.cs
- precedingquery.cs
- CharEnumerator.cs
- AxisAngleRotation3D.cs
- ExtensionSimplifierMarkupObject.cs
- PrintDocument.cs
- XmlRawWriter.cs
- VirtualPathUtility.cs
- Binding.cs
- PathSegmentCollection.cs
- BoolExpression.cs
- UIPermission.cs
- AsyncResult.cs
- BamlResourceDeserializer.cs
- DocumentScope.cs
- LineInfo.cs
- ProcessHostServerConfig.cs
- OpacityConverter.cs
- SynchronizedPool.cs
- dbenumerator.cs
- Translator.cs
- ValidatingPropertiesEventArgs.cs
- Pair.cs
- InputLangChangeRequestEvent.cs
- ArgumentsParser.cs
- __FastResourceComparer.cs
- ToolStripItemBehavior.cs
- TypefaceMetricsCache.cs
- DesignerPainter.cs
- PublisherIdentityPermission.cs
- KeySpline.cs
- ClientCredentials.cs
- DataControlFieldCell.cs
- DataGridViewLinkCell.cs
- ToolboxItemAttribute.cs
- SafeArrayTypeMismatchException.cs
- WebContext.cs
- SqlBulkCopyColumnMapping.cs
- ListBindingConverter.cs
- DebugHandleTracker.cs
- Latin1Encoding.cs
- NonClientArea.cs
- StretchValidation.cs
- WebPartExportVerb.cs
- IsolatedStorageFile.cs
- SchemaElementLookUpTable.cs
- CircleEase.cs
- DiscoveryInnerClientAdhocCD1.cs
- LabelEditEvent.cs
- ComponentResourceKey.cs
- CodeSubDirectoriesCollection.cs
- SoapCodeExporter.cs
- ActivityExecutionContext.cs
- TimeStampChecker.cs
- XmlWriterSettings.cs
- ScriptManager.cs
- ContainerControl.cs
- DbDataReader.cs
- CellTreeNodeVisitors.cs
- IISUnsafeMethods.cs
- XmlSchemaAttributeGroupRef.cs
- EntityDataSourceQueryBuilder.cs
- CodeTypeMemberCollection.cs
- SwitchElementsCollection.cs
- RadioButton.cs
- BackgroundWorker.cs
- UInt32Converter.cs
- ComNativeDescriptor.cs
- DbProviderFactoriesConfigurationHandler.cs
- CompositeDataBoundControl.cs
- bindurihelper.cs
- TrackingRecordPreFilter.cs
- Menu.cs
- AssemblyHash.cs
- ProviderUtil.cs
- CodeTypeParameterCollection.cs
- MexBindingBindingCollectionElement.cs