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
- RootProfilePropertySettingsCollection.cs
- WorkflowRequestContext.cs
- RandomNumberGenerator.cs
- DataTableReaderListener.cs
- XmlProcessingInstruction.cs
- HandlerElement.cs
- HuffModule.cs
- WebPartConnectVerb.cs
- InvokePattern.cs
- ColumnWidthChangingEvent.cs
- FrameworkTemplate.cs
- ExtendedTransformFactory.cs
- TextProperties.cs
- SubclassTypeValidatorAttribute.cs
- TextEditorTyping.cs
- BasicKeyConstraint.cs
- RightsManagementInformation.cs
- NavigationExpr.cs
- QueryPageSettingsEventArgs.cs
- ResourcePermissionBase.cs
- HGlobalSafeHandle.cs
- ShaderRenderModeValidation.cs
- DoubleLink.cs
- CustomWebEventKey.cs
- SimpleTypeResolver.cs
- AuthorizationRuleCollection.cs
- InvalidCommandTreeException.cs
- UrlAuthorizationModule.cs
- _OSSOCK.cs
- CalendarDesigner.cs
- ParameterCollection.cs
- ResourceManager.cs
- ManualResetEvent.cs
- ExpressionsCollectionConverter.cs
- EntitySetDataBindingList.cs
- WebPartsPersonalizationAuthorization.cs
- PropertyInfoSet.cs
- TextTrailingCharacterEllipsis.cs
- ViewKeyConstraint.cs
- _ProxyRegBlob.cs
- XmlSignificantWhitespace.cs
- ObjectPersistData.cs
- NumericUpDownAcceleration.cs
- SimpleRecyclingCache.cs
- IdentityModelDictionary.cs
- DocumentAutomationPeer.cs
- GridViewColumnCollectionChangedEventArgs.cs
- InvokeCompletedEventArgs.cs
- ValueType.cs
- uribuilder.cs
- ToolboxItemLoader.cs
- CompilationSection.cs
- ReadWriteSpinLock.cs
- Stroke.cs
- HWStack.cs
- ActiveXHost.cs
- path.cs
- DrawingContextDrawingContextWalker.cs
- ListViewSortEventArgs.cs
- BuildResultCache.cs
- OdbcConnectionFactory.cs
- Behavior.cs
- Ports.cs
- ConfigXmlSignificantWhitespace.cs
- ThreadPoolTaskScheduler.cs
- RowUpdatedEventArgs.cs
- NavigationCommands.cs
- WindowsToolbarItemAsMenuItem.cs
- DropDownButton.cs
- ColumnReorderedEventArgs.cs
- ActivityExecutor.cs
- exports.cs
- HashMembershipCondition.cs
- StatusBarPanel.cs
- SchemaElementLookUpTableEnumerator.cs
- CannotUnloadAppDomainException.cs
- DesignColumnCollection.cs
- TraceListener.cs
- NodeFunctions.cs
- VisualStateManager.cs
- WebRequestModuleElement.cs
- WsiProfilesElement.cs
- DataGridViewCellStyleChangedEventArgs.cs
- RegexNode.cs
- TreeWalkHelper.cs
- WorkflowDesigner.cs
- ImageFormatConverter.cs
- SimpleFileLog.cs
- InputProviderSite.cs
- SiteMapDataSource.cs
- BulletedListEventArgs.cs
- WinOEToolBoxItem.cs
- CatalogPartChrome.cs
- TemplateBindingExpressionConverter.cs
- ProvidePropertyAttribute.cs
- CultureMapper.cs
- SqlDelegatedTransaction.cs
- ExtentJoinTreeNode.cs
- SemanticResultKey.cs
- RenameRuleObjectDialog.cs