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
- _BaseOverlappedAsyncResult.cs
- AssemblyInfo.cs
- MemberBinding.cs
- SecuritySessionServerSettings.cs
- Debug.cs
- ServiceMemoryGates.cs
- PageAsyncTaskManager.cs
- HashRepartitionEnumerator.cs
- IndexedGlyphRun.cs
- HostProtectionPermission.cs
- KerberosTicketHashIdentifierClause.cs
- SchemaHelper.cs
- BitVector32.cs
- InfoCardAsymmetricCrypto.cs
- GridViewItemAutomationPeer.cs
- SoapProtocolImporter.cs
- RegisteredExpandoAttribute.cs
- TextCharacters.cs
- StatusBarAutomationPeer.cs
- ClassHandlersStore.cs
- TypeUnloadedException.cs
- StringConverter.cs
- ExpandoClass.cs
- EventLogTraceListener.cs
- SettingsPropertyValueCollection.cs
- ClrPerspective.cs
- DataTableNewRowEvent.cs
- DictionaryManager.cs
- AppModelKnownContentFactory.cs
- RuntimeHelpers.cs
- XmlSchemaType.cs
- LeftCellWrapper.cs
- UnsafeNativeMethods.cs
- MenuItemStyle.cs
- MissingMemberException.cs
- DecoderNLS.cs
- PlaceHolder.cs
- CodeObjectCreateExpression.cs
- SortAction.cs
- OdbcParameterCollection.cs
- SemanticValue.cs
- DBConnectionString.cs
- ContractAdapter.cs
- JsonClassDataContract.cs
- TaskFormBase.cs
- ActivityMarkupSerializer.cs
- QueryContinueDragEvent.cs
- HttpPostedFile.cs
- DefaultProxySection.cs
- BufferModeSettings.cs
- XmlArrayAttribute.cs
- Boolean.cs
- COM2Properties.cs
- MyContact.cs
- TextEncodedRawTextWriter.cs
- CommonDialog.cs
- TableLayoutColumnStyleCollection.cs
- HttpListenerPrefixCollection.cs
- NumericUpDownAcceleration.cs
- XamlFigureLengthSerializer.cs
- NotifyCollectionChangedEventArgs.cs
- DeclarationUpdate.cs
- PipeSecurity.cs
- SchemaComplexType.cs
- ExtenderProvidedPropertyAttribute.cs
- ContentDisposition.cs
- SelectionRange.cs
- CheckBoxStandardAdapter.cs
- LockRecursionException.cs
- DataBoundLiteralControl.cs
- IconBitmapDecoder.cs
- rsa.cs
- TextTreeTextElementNode.cs
- CodeTypeReferenceExpression.cs
- Size3D.cs
- ProfileBuildProvider.cs
- Style.cs
- ContextItem.cs
- HtmlControlDesigner.cs
- EmbeddedObject.cs
- ExtendedPropertyDescriptor.cs
- PropertyGrid.cs
- UnsafeNativeMethodsCLR.cs
- dataSvcMapFileLoader.cs
- SessionStateItemCollection.cs
- CombinedTcpChannel.cs
- DemultiplexingClientMessageFormatter.cs
- MyContact.cs
- DependencyPropertyValueSerializer.cs
- VBIdentifierDesigner.xaml.cs
- DateTimeOffset.cs
- BufferModesCollection.cs
- Tile.cs
- DockEditor.cs
- XmlSchemaAnnotation.cs
- InlineCollection.cs
- DbFunctionCommandTree.cs
- PropertyEntry.cs
- ImageIndexEditor.cs
- ProvideValueServiceProvider.cs