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
- FileVersionInfo.cs
- TransformCollection.cs
- SuppressMergeCheckAttribute.cs
- PropertyInfoSet.cs
- PlaceHolder.cs
- OuterGlowBitmapEffect.cs
- DrawingContextWalker.cs
- CodeAttributeDeclaration.cs
- StateManagedCollection.cs
- QueryPageSettingsEventArgs.cs
- TypeLoadException.cs
- CheckBoxPopupAdapter.cs
- DataObject.cs
- ACL.cs
- Int32KeyFrameCollection.cs
- ParserStreamGeometryContext.cs
- __ConsoleStream.cs
- GreenMethods.cs
- PointCollectionValueSerializer.cs
- CommandID.cs
- precedingsibling.cs
- SystemWebSectionGroup.cs
- PrimitiveXmlSerializers.cs
- SimpleWorkerRequest.cs
- UserControlBuildProvider.cs
- InternalException.cs
- SizeAnimationUsingKeyFrames.cs
- SocketElement.cs
- Literal.cs
- WriterOutput.cs
- IndexerNameAttribute.cs
- SurrogateDataContract.cs
- CqlParserHelpers.cs
- ErrorWebPart.cs
- DiscoveryEndpointElement.cs
- ValidateNames.cs
- TagNameToTypeMapper.cs
- CodeDirectionExpression.cs
- SiteMapDataSourceView.cs
- EndOfStreamException.cs
- WpfPayload.cs
- CustomAttributeBuilder.cs
- UIElementAutomationPeer.cs
- SectionXmlInfo.cs
- MailWebEventProvider.cs
- Debug.cs
- ResourceReferenceExpression.cs
- translator.cs
- TokenCreationParameter.cs
- PropertyMappingExceptionEventArgs.cs
- SqlDataSourceTableQuery.cs
- XmlMemberMapping.cs
- TextTreePropertyUndoUnit.cs
- JapaneseLunisolarCalendar.cs
- TreeChangeInfo.cs
- KeyManager.cs
- Utils.cs
- PrivacyNoticeElement.cs
- MdiWindowListItemConverter.cs
- DefaultExpressionVisitor.cs
- ReferencedCollectionType.cs
- OutputCacheSettings.cs
- XmlSerializationGeneratedCode.cs
- IDataContractSurrogate.cs
- PropertyRecord.cs
- ContentElementAutomationPeer.cs
- UncommonField.cs
- Main.cs
- ToolStripButton.cs
- AttachedAnnotationChangedEventArgs.cs
- DataSourceCollectionBase.cs
- WebEventTraceProvider.cs
- DataGridTemplateColumn.cs
- ColumnResult.cs
- MapPathBasedVirtualPathProvider.cs
- PerformanceCountersElement.cs
- _FixedSizeReader.cs
- SchemaImporterExtension.cs
- AssociationSetMetadata.cs
- InputBindingCollection.cs
- BaseProcessProtocolHandler.cs
- LambdaCompiler.Expressions.cs
- sqlpipe.cs
- OdbcConnectionFactory.cs
- SerializerWriterEventHandlers.cs
- SecurityVersion.cs
- ConfigurationManagerHelper.cs
- MembershipUser.cs
- DivideByZeroException.cs
- BinaryParser.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- PropertyManager.cs
- XmlWriterDelegator.cs
- Utils.cs
- RadioButtonBaseAdapter.cs
- HtmlTextViewAdapter.cs
- OdbcInfoMessageEvent.cs
- AlphaSortedEnumConverter.cs
- TdsValueSetter.cs
- GridViewRowCollection.cs