Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / 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: 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. //---------------------------------------------------------------------------- // //// 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
- VersionPair.cs
- PasswordTextContainer.cs
- HttpModuleAction.cs
- CachedBitmap.cs
- safex509handles.cs
- ServiceMetadataPublishingElement.cs
- SchemaConstraints.cs
- ServiceDescriptionSerializer.cs
- SqlProfileProvider.cs
- CodeMemberEvent.cs
- InvalidWMPVersionException.cs
- ScrollItemProviderWrapper.cs
- UrlMappingsSection.cs
- ParentControlDesigner.cs
- TemplatedMailWebEventProvider.cs
- NCryptNative.cs
- ApplicationException.cs
- GradientStopCollection.cs
- EdmEntityTypeAttribute.cs
- PropertyToken.cs
- Rfc2898DeriveBytes.cs
- SiteMapNodeItem.cs
- PkcsMisc.cs
- ProcessModelSection.cs
- DataPointer.cs
- ToolStripMenuItemDesigner.cs
- QueryableDataSourceHelper.cs
- PropertyItem.cs
- Profiler.cs
- Preprocessor.cs
- ManifestSignatureInformation.cs
- SqlMultiplexer.cs
- WindowsClaimSet.cs
- DiffuseMaterial.cs
- SyndicationDeserializer.cs
- IODescriptionAttribute.cs
- DbConnectionPool.cs
- ProxyAttribute.cs
- InternalMappingException.cs
- XsdDateTime.cs
- ExtensionDataReader.cs
- OptimizedTemplateContentHelper.cs
- WinInetCache.cs
- PageCache.cs
- SecurityException.cs
- SystemResourceKey.cs
- FragmentQueryKB.cs
- MetadataItem_Static.cs
- DocumentApplicationJournalEntry.cs
- XmlRawWriterWrapper.cs
- ResourceAttributes.cs
- TypeToken.cs
- Events.cs
- DatePickerTextBox.cs
- JavaScriptObjectDeserializer.cs
- WebPartConnectionsEventArgs.cs
- BinHexEncoder.cs
- Processor.cs
- DefaultBinder.cs
- RichTextBox.cs
- TreePrinter.cs
- SecurityRuntime.cs
- OdbcParameter.cs
- TCEAdapterGenerator.cs
- UpDownEvent.cs
- _Connection.cs
- EncryptedPackage.cs
- RSAPKCS1KeyExchangeFormatter.cs
- HttpFileCollection.cs
- CompilerScopeManager.cs
- FormClosingEvent.cs
- CacheSection.cs
- PolicyLevel.cs
- SmtpFailedRecipientException.cs
- ZipIOExtraFieldPaddingElement.cs
- SecurityCapabilities.cs
- PropertyValueUIItem.cs
- TdsParserStateObject.cs
- OledbConnectionStringbuilder.cs
- SharedUtils.cs
- Transform3DCollection.cs
- Activity.cs
- XmlSchemaSimpleTypeRestriction.cs
- ErrorHandlingReceiver.cs
- NamespaceInfo.cs
- WebPartDisplayModeEventArgs.cs
- StaticDataManager.cs
- UpdateExpressionVisitor.cs
- AuthenticationModuleElementCollection.cs
- SynchronizedMessageSource.cs
- FieldTemplateUserControl.cs
- Screen.cs
- TextUtf8RawTextWriter.cs
- KeyTime.cs
- ConfigurationSectionCollection.cs
- MemoryPressure.cs
- PreApplicationStartMethodAttribute.cs
- BrowserCapabilitiesFactoryBase.cs
- StateDesignerConnector.cs
- StrokeCollection2.cs