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
- BindMarkupExtensionSerializer.cs
- PropertyMap.cs
- EmissiveMaterial.cs
- Int16.cs
- GridPatternIdentifiers.cs
- SettingsPropertyWrongTypeException.cs
- CannotUnloadAppDomainException.cs
- SystemIPAddressInformation.cs
- DirectionalLight.cs
- ExtenderProvidedPropertyAttribute.cs
- XmlSchemaSimpleContentExtension.cs
- WebPartEditorApplyVerb.cs
- MimeTypePropertyAttribute.cs
- WindowsAuthenticationEventArgs.cs
- DataGridBeginningEditEventArgs.cs
- TextRunCache.cs
- XmlILIndex.cs
- _ContextAwareResult.cs
- RootBuilder.cs
- ServiceOperationInvoker.cs
- BoolExpression.cs
- XMLSchema.cs
- SmtpSection.cs
- SerializationHelper.cs
- EnumValidator.cs
- AnnotationHelper.cs
- TreeNodeMouseHoverEvent.cs
- DataFormats.cs
- ResourceProviderFactory.cs
- MetadataArtifactLoaderResource.cs
- CapabilitiesSection.cs
- Polyline.cs
- HandoffBehavior.cs
- ExclusiveTcpTransportManager.cs
- FragmentQueryProcessor.cs
- PackageProperties.cs
- TableChangeProcessor.cs
- StringInfo.cs
- Baml2006ReaderSettings.cs
- WorkflowTransactionService.cs
- CustomDictionarySources.cs
- DateTimeOffsetStorage.cs
- DBBindings.cs
- SslStream.cs
- BamlReader.cs
- DataBindingValueUIHandler.cs
- EventWaitHandleSecurity.cs
- SQLByte.cs
- Pens.cs
- DataGridPageChangedEventArgs.cs
- TextBoxView.cs
- ComboBox.cs
- ColumnHeader.cs
- DataControlReferenceCollection.cs
- ObfuscationAttribute.cs
- LoginName.cs
- ImmutableObjectAttribute.cs
- MethodRental.cs
- VoiceChangeEventArgs.cs
- TypeSystemProvider.cs
- XmlAnyElementAttributes.cs
- SqlRowUpdatingEvent.cs
- NamespaceInfo.cs
- SecurityRuntime.cs
- NonBatchDirectoryCompiler.cs
- AttributeEmitter.cs
- ClassHandlersStore.cs
- PersonalizationDictionary.cs
- DrawingContextWalker.cs
- MsmqIntegrationInputMessage.cs
- OleDbException.cs
- NullableIntAverageAggregationOperator.cs
- Bind.cs
- ToolStripLabel.cs
- VerificationAttribute.cs
- VirtualizingPanel.cs
- dsa.cs
- ToolStripItemEventArgs.cs
- FileSystemWatcher.cs
- GridEntryCollection.cs
- EntityDataSourceState.cs
- ResolveInfo.cs
- UnsignedPublishLicense.cs
- WebPartTransformer.cs
- PeerReferralPolicy.cs
- DatagridviewDisplayedBandsData.cs
- HtmlInputImage.cs
- ThreadStartException.cs
- StrokeNodeData.cs
- ServiceOperation.cs
- ExpressionPrinter.cs
- InputProcessorProfilesLoader.cs
- KeyMatchBuilder.cs
- ToolBar.cs
- TabItemAutomationPeer.cs
- BaseDataListComponentEditor.cs
- ArgumentValidation.cs
- Registry.cs
- ContactManager.cs
- DataStreams.cs