Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / 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: 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
- DesignTimeVisibleAttribute.cs
- CacheMemory.cs
- XamlReaderHelper.cs
- FeatureManager.cs
- MouseDevice.cs
- RestHandlerFactory.cs
- WindowProviderWrapper.cs
- Permission.cs
- ExtendedPropertyCollection.cs
- DateBoldEvent.cs
- InputLanguageManager.cs
- BaseParaClient.cs
- ClockController.cs
- TraceContextEventArgs.cs
- FormViewPagerRow.cs
- StyleSelector.cs
- PopupRootAutomationPeer.cs
- CapabilitiesAssignment.cs
- PackageFilter.cs
- IWorkflowDebuggerService.cs
- MetafileHeader.cs
- HttpRuntimeSection.cs
- Encoder.cs
- DataSourceXmlSerializationAttribute.cs
- ListViewInsertEventArgs.cs
- TemplateColumn.cs
- ScriptingProfileServiceSection.cs
- ListenerElementsCollection.cs
- Compilation.cs
- ConversionValidationRule.cs
- XmlDomTextWriter.cs
- WebEvents.cs
- RecognizeCompletedEventArgs.cs
- ButtonColumn.cs
- DbModificationCommandTree.cs
- PolicyStatement.cs
- InvalidPropValue.cs
- StringUtil.cs
- XpsS0ValidatingLoader.cs
- Empty.cs
- ListMarkerLine.cs
- MsmqHostedTransportConfiguration.cs
- Html32TextWriter.cs
- ToolStripOverflow.cs
- SubordinateTransaction.cs
- JournalEntryStack.cs
- GifBitmapEncoder.cs
- NominalTypeEliminator.cs
- MergeFilterQuery.cs
- ObjectDataSource.cs
- Compilation.cs
- Model3DCollection.cs
- ExpressionTextBox.xaml.cs
- XsltLibrary.cs
- ParallelTimeline.cs
- CodeRegionDirective.cs
- XdrBuilder.cs
- BrowserCapabilitiesCodeGenerator.cs
- FileResponseElement.cs
- ToolTipService.cs
- xml.cs
- Size.cs
- SqlWriter.cs
- LazyLoadBehavior.cs
- ObservableCollection.cs
- RootBrowserWindow.cs
- Scripts.cs
- ClaimTypeElement.cs
- DescriptionAttribute.cs
- ReflectionTypeLoadException.cs
- UndoEngine.cs
- HttpRequestCacheValidator.cs
- TreeView.cs
- KnownAssembliesSet.cs
- ParameterToken.cs
- PointAnimation.cs
- EndpointInfo.cs
- DrawTreeNodeEventArgs.cs
- Size3DValueSerializer.cs
- DbDataSourceEnumerator.cs
- ProgressiveCrcCalculatingStream.cs
- ProfileSection.cs
- EntitySqlQueryBuilder.cs
- XslAst.cs
- WebPartTransformerCollection.cs
- DataGridViewControlCollection.cs
- ConfigurationElementCollection.cs
- CollectionViewGroupRoot.cs
- XmlIlVisitor.cs
- UrlParameterWriter.cs
- ConfigViewGenerator.cs
- MSAAWinEventWrap.cs
- SafeBitVector32.cs
- TableParaClient.cs
- FixUpCollection.cs
- Internal.cs
- DelegatedStream.cs
- SpecularMaterial.cs
- XPathNodeIterator.cs
- JapaneseCalendar.cs