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
- Attachment.cs
- ModuleElement.cs
- Baml2006Reader.cs
- RuleConditionDialog.cs
- FrameSecurityDescriptor.cs
- ToolStripButton.cs
- WebControlParameterProxy.cs
- Table.cs
- ProxyManager.cs
- WindowsToolbar.cs
- DesignTimeParseData.cs
- SessionStateUtil.cs
- XmlDownloadManager.cs
- TextRunCache.cs
- NameValueSectionHandler.cs
- DataGridViewCellMouseEventArgs.cs
- WarningException.cs
- CodeCatchClause.cs
- ColumnHeaderConverter.cs
- PropertyManager.cs
- XmlSignatureProperties.cs
- HttpPostedFileWrapper.cs
- DataServicePagingProviderWrapper.cs
- XmlTypeMapping.cs
- SoapAttributeOverrides.cs
- WeakReferenceEnumerator.cs
- DataGridViewHeaderCell.cs
- SecurityTokenAuthenticator.cs
- SendAgentStatusRequest.cs
- ImageBrush.cs
- HttpRequestCacheValidator.cs
- OrderByQueryOptionExpression.cs
- FilterElement.cs
- SafeJobHandle.cs
- PropertyFilterAttribute.cs
- Geometry.cs
- TempFiles.cs
- TaskScheduler.cs
- BitmapInitialize.cs
- StringValidatorAttribute.cs
- InstanceValue.cs
- MonthChangedEventArgs.cs
- CompatibleIComparer.cs
- SoapIncludeAttribute.cs
- TagMapInfo.cs
- PeerContact.cs
- WpfPayload.cs
- DesignerPainter.cs
- dataprotectionpermission.cs
- Pkcs7Signer.cs
- TextTreeInsertUndoUnit.cs
- HttpCacheParams.cs
- ConnectionConsumerAttribute.cs
- InstrumentationTracker.cs
- RuntimeCompatibilityAttribute.cs
- SoapWriter.cs
- KeyboardNavigation.cs
- RegisteredExpandoAttribute.cs
- CacheChildrenQuery.cs
- ToolboxComponentsCreatedEventArgs.cs
- JpegBitmapEncoder.cs
- PropertyEmitterBase.cs
- webeventbuffer.cs
- SharedRuntimeState.cs
- DefaultProxySection.cs
- LinqDataSourceDisposeEventArgs.cs
- XPathScanner.cs
- RelatedImageListAttribute.cs
- OLEDB_Enum.cs
- PrivilegeNotHeldException.cs
- ScalarOps.cs
- AttributeEmitter.cs
- ConstNode.cs
- Peer.cs
- XmlBoundElement.cs
- TypefaceCollection.cs
- DocumentPageHost.cs
- EventData.cs
- UrlParameterReader.cs
- ReadOnlyCollection.cs
- CodeMemberMethod.cs
- AdornedElementPlaceholder.cs
- DataGridViewTopLeftHeaderCell.cs
- ReflectionTypeLoadException.cs
- ItemMap.cs
- XPathNode.cs
- MemberCollection.cs
- ReadonlyMessageFilter.cs
- __Filters.cs
- WebServiceData.cs
- XamlTypeMapper.cs
- MulticastNotSupportedException.cs
- TreeNode.cs
- FunctionNode.cs
- Activity.cs
- CodeTypeParameterCollection.cs
- TextServicesLoader.cs
- MethodBuilder.cs
- QuestionEventArgs.cs
- DataGridViewCellConverter.cs