Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ExpandSegment.cs
- GacUtil.cs
- ConditionalAttribute.cs
- ZipFileInfo.cs
- EditingScope.cs
- UnsafeNativeMethods.cs
- ArcSegment.cs
- ProcessRequestArgs.cs
- SqlGatherConsumedAliases.cs
- ParameterToken.cs
- DataGridViewCellCancelEventArgs.cs
- Symbol.cs
- DocumentPageView.cs
- TraceFilter.cs
- AmbientValueAttribute.cs
- ConfigurationStrings.cs
- TextWriter.cs
- SocketInformation.cs
- ISAPIApplicationHost.cs
- KeyNotFoundException.cs
- MSAANativeProvider.cs
- TypeConverterHelper.cs
- DbParameterCollection.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- ClientConfigPaths.cs
- XmlLoader.cs
- InfoCardTrace.cs
- DbConnectionInternal.cs
- Cursor.cs
- ToggleButton.cs
- SystemIPInterfaceProperties.cs
- JsonSerializer.cs
- ErrorHandler.cs
- QuaternionConverter.cs
- RelOps.cs
- DropShadowEffect.cs
- URLIdentityPermission.cs
- OdbcConnectionHandle.cs
- NonVisualControlAttribute.cs
- DNS.cs
- ConnectionPoolManager.cs
- ComponentResourceKey.cs
- QueryCursorEventArgs.cs
- SharedDp.cs
- XmlCDATASection.cs
- JsonSerializer.cs
- X509Extension.cs
- BinaryFormatterWriter.cs
- SafeRegistryHandle.cs
- HttpResponseHeader.cs
- AspNetSynchronizationContext.cs
- SectionVisual.cs
- ProtocolsConfigurationHandler.cs
- _AutoWebProxyScriptHelper.cs
- PageThemeParser.cs
- ProviderSettingsCollection.cs
- ThreadInterruptedException.cs
- PolicyVersionConverter.cs
- RolePrincipal.cs
- SatelliteContractVersionAttribute.cs
- SoapReflectionImporter.cs
- ToolboxItemFilterAttribute.cs
- IPAddressCollection.cs
- SystemFonts.cs
- PolicyManager.cs
- WindowsListViewSubItem.cs
- DetailsViewModeEventArgs.cs
- DataGridHeaderBorder.cs
- ITextView.cs
- TableParaClient.cs
- QualificationDataItem.cs
- ServiceMemoryGates.cs
- WindowsUpDown.cs
- AdornerDecorator.cs
- CryptoConfig.cs
- MatrixValueSerializer.cs
- WhereaboutsReader.cs
- NonceToken.cs
- NotFiniteNumberException.cs
- StickyNote.cs
- TransformerInfoCollection.cs
- ServiceOperationWrapper.cs
- IndexOutOfRangeException.cs
- XhtmlBasicObjectListAdapter.cs
- ConstrainedGroup.cs
- ParserHooks.cs
- CrossAppDomainChannel.cs
- ResourceManager.cs
- XmlDataLoader.cs
- WebPartAddingEventArgs.cs
- ImplicitInputBrush.cs
- FixedFindEngine.cs
- ZipArchive.cs
- DataViewSettingCollection.cs
- BufferModeSettings.cs
- FtpCachePolicyElement.cs
- SiteMembershipCondition.cs
- Trace.cs
- WinInetCache.cs
- XmlSchemaDocumentation.cs