Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- ContentControl.cs
- Repeater.cs
- StorageMappingItemLoader.cs
- XmlReflectionMember.cs
- Geometry3D.cs
- AnchoredBlock.cs
- AttributeQuery.cs
- PresentationSource.cs
- AbstractExpressions.cs
- ContextMenuAutomationPeer.cs
- Pen.cs
- TextBoxBase.cs
- ReadOnlyDataSource.cs
- AccessViolationException.cs
- DetailsViewRowCollection.cs
- DynamicDataResources.Designer.cs
- BinaryFormatter.cs
- FlowDocumentReader.cs
- PtsCache.cs
- WindowExtensionMethods.cs
- ToolStripRenderEventArgs.cs
- CustomAttributeSerializer.cs
- ValidationRule.cs
- Parallel.cs
- CollectionBuilder.cs
- XmlTextEncoder.cs
- CharStorage.cs
- InkCollectionBehavior.cs
- ObjectDataSourceEventArgs.cs
- TextRange.cs
- JavaScriptSerializer.cs
- WebPartDisplayMode.cs
- SiteOfOriginPart.cs
- PerfCounterSection.cs
- DesignerValidatorAdapter.cs
- DataGridViewRowPostPaintEventArgs.cs
- LocalizableAttribute.cs
- StretchValidation.cs
- NativeMethods.cs
- GACIdentityPermission.cs
- IDispatchConstantAttribute.cs
- GradientStop.cs
- DetailsViewUpdatedEventArgs.cs
- ExceptionUtility.cs
- ExeConfigurationFileMap.cs
- EntityConnectionStringBuilder.cs
- XmlDocumentFragment.cs
- FixedNode.cs
- ConnectionStringsExpressionBuilder.cs
- SystemIPGlobalProperties.cs
- HybridDictionary.cs
- SignatureGenerator.cs
- MsmqOutputChannel.cs
- SHA384Cng.cs
- LinkUtilities.cs
- DirectoryObjectSecurity.cs
- MemberDescriptor.cs
- HtmlControlPersistable.cs
- IisTraceListener.cs
- PathParser.cs
- SqlXmlStorage.cs
- SortDescription.cs
- QueryableDataSourceHelper.cs
- Point.cs
- Attribute.cs
- ColorConvertedBitmap.cs
- QueryableDataSourceHelper.cs
- StringHandle.cs
- PackageDigitalSignature.cs
- PropertyMappingExceptionEventArgs.cs
- WinFormsSecurity.cs
- TdsParserHelperClasses.cs
- EventDescriptor.cs
- Rfc2898DeriveBytes.cs
- XmlSchemaException.cs
- HScrollBar.cs
- ConfigurationLocation.cs
- ProxyGenerator.cs
- XmlWrappingReader.cs
- ShapingEngine.cs
- FormatPage.cs
- OleDbFactory.cs
- InsufficientExecutionStackException.cs
- ApplicationProxyInternal.cs
- SoapTypeAttribute.cs
- XmlQueryRuntime.cs
- ExpressionBuilder.cs
- LinqDataSourceStatusEventArgs.cs
- DetailsViewDeletedEventArgs.cs
- PrivilegedConfigurationManager.cs
- SecondaryViewProvider.cs
- MenuItem.cs
- SerializationFieldInfo.cs
- ParseElement.cs
- CustomErrorCollection.cs
- CustomCredentialPolicy.cs
- DesignTimeTemplateParser.cs
- FrameworkElementFactoryMarkupObject.cs
- UnsafeNativeMethods.cs
- ListBoxAutomationPeer.cs