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
- Main.cs
- BitmapFrameDecode.cs
- RelativeSource.cs
- NativeActivityTransactionContext.cs
- MetabaseSettingsIis7.cs
- WebEventTraceProvider.cs
- ElementProxy.cs
- AppDomainCompilerProxy.cs
- ConfigXmlAttribute.cs
- ProtectedProviderSettings.cs
- DataControlImageButton.cs
- DataGridBoundColumn.cs
- ClientConfigPaths.cs
- HtmlInputButton.cs
- OracleDateTime.cs
- CodeAttributeArgument.cs
- KnownTypeAttribute.cs
- FtpRequestCacheValidator.cs
- TreeView.cs
- HijriCalendar.cs
- QueryAsyncResult.cs
- DbParameterHelper.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- InvalidEnumArgumentException.cs
- ProxyGenerationError.cs
- DataSourceXmlTextReader.cs
- CqlParserHelpers.cs
- KeyValueConfigurationCollection.cs
- DecimalConstantAttribute.cs
- Quaternion.cs
- SubMenuStyleCollection.cs
- ParameterCollection.cs
- ColorTransformHelper.cs
- ColorMatrix.cs
- UnsafeNetInfoNativeMethods.cs
- ImageButton.cs
- Light.cs
- OracleBinary.cs
- TransformerTypeCollection.cs
- KeySpline.cs
- GenericUriParser.cs
- ContentTextAutomationPeer.cs
- NameTable.cs
- ActivityDesignerHelper.cs
- BinaryReader.cs
- ManagedWndProcTracker.cs
- ManipulationLogic.cs
- PartialClassGenerationTaskInternal.cs
- AnimationClock.cs
- NameValueSectionHandler.cs
- MenuCommands.cs
- UnknownWrapper.cs
- HandlerFactoryCache.cs
- Type.cs
- AtomContentProperty.cs
- ListCommandEventArgs.cs
- GenericTransactionFlowAttribute.cs
- WebServiceData.cs
- ServiceOperationParameter.cs
- ApplicationInfo.cs
- CompressionTransform.cs
- dataprotectionpermission.cs
- GroupQuery.cs
- SettingsPropertyValueCollection.cs
- OrderedParallelQuery.cs
- KeyInterop.cs
- TextServicesManager.cs
- DesigntimeLicenseContext.cs
- ImageField.cs
- ListViewCommandEventArgs.cs
- ZoneButton.cs
- XomlCompilerParameters.cs
- SystemDiagnosticsSection.cs
- PersonalizationEntry.cs
- ScrollBarRenderer.cs
- RadioButtonPopupAdapter.cs
- RegexStringValidatorAttribute.cs
- CharacterBufferReference.cs
- VersionedStream.cs
- SiteMapHierarchicalDataSourceView.cs
- DataGridViewCellCollection.cs
- TdsParserSafeHandles.cs
- WebRequestModulesSection.cs
- ObjectParameter.cs
- RequestResponse.cs
- AssertFilter.cs
- CatalogZoneDesigner.cs
- DataListItemCollection.cs
- LoginDesigner.cs
- RequiredFieldValidator.cs
- StringFunctions.cs
- RemotingSurrogateSelector.cs
- ReferenceConverter.cs
- xmlsaver.cs
- XPathCompileException.cs
- TextReader.cs
- FormDesigner.cs
- entitydatasourceentitysetnameconverter.cs
- XPathArrayIterator.cs
- AuthenticatedStream.cs