Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataContractAttribute.cs
- SmiContextFactory.cs
- DrawingGroup.cs
- FlowDocumentReaderAutomationPeer.cs
- GACIdentityPermission.cs
- SecurityException.cs
- UTF8Encoding.cs
- DataRecordObjectView.cs
- TransactionState.cs
- WebContext.cs
- MemberDomainMap.cs
- Oid.cs
- AsyncResult.cs
- HttpListenerContext.cs
- LinkArea.cs
- MouseEvent.cs
- Condition.cs
- FactoryGenerator.cs
- ColumnResult.cs
- _Events.cs
- UITypeEditors.cs
- SQLBytes.cs
- Scripts.cs
- MediaCommands.cs
- PagesSection.cs
- NullableLongSumAggregationOperator.cs
- DateTimeFormat.cs
- MenuItemBindingCollection.cs
- HttpCachePolicy.cs
- ProvidePropertyAttribute.cs
- MulticastOption.cs
- ColorConvertedBitmap.cs
- RowVisual.cs
- COM2ICategorizePropertiesHandler.cs
- WindowsFont.cs
- XPathBinder.cs
- ReferencedAssembly.cs
- XmlReflectionMember.cs
- WorkflowInstance.cs
- ProfilePropertyNameValidator.cs
- XsltException.cs
- HttpCapabilitiesSectionHandler.cs
- WindowsFormsSynchronizationContext.cs
- DesignOnlyAttribute.cs
- InputReport.cs
- TypeUtils.cs
- FileVersion.cs
- FixedBufferAttribute.cs
- SmiTypedGetterSetter.cs
- COSERVERINFO.cs
- Types.cs
- MaskedTextBoxTextEditorDropDown.cs
- EventRecordWrittenEventArgs.cs
- RegisteredHiddenField.cs
- ImportContext.cs
- TagPrefixCollection.cs
- NotImplementedException.cs
- PageCodeDomTreeGenerator.cs
- SqlWebEventProvider.cs
- ExtensionSimplifierMarkupObject.cs
- TraceContextRecord.cs
- PropertyInfoSet.cs
- TcpStreams.cs
- WebPartZoneAutoFormat.cs
- QueryResultOp.cs
- ListViewItem.cs
- ObjectQuery_EntitySqlExtensions.cs
- EntityContainerEntitySet.cs
- OdbcDataAdapter.cs
- PowerStatus.cs
- OdbcConnection.cs
- HttpApplication.cs
- FileLogRecordStream.cs
- FieldNameLookup.cs
- WebPartEditorApplyVerb.cs
- StringAnimationUsingKeyFrames.cs
- XmlAnyAttributeAttribute.cs
- CssTextWriter.cs
- PcmConverter.cs
- FontFaceLayoutInfo.cs
- Schema.cs
- cookiecontainer.cs
- HtmlToClrEventProxy.cs
- ErrorHandler.cs
- Rect.cs
- DoubleUtil.cs
- CurrentChangingEventArgs.cs
- UInt16Storage.cs
- CmsInterop.cs
- DragDrop.cs
- CompleteWizardStep.cs
- IsolatedStoragePermission.cs
- SecurityResources.cs
- HashHelper.cs
- IssuedTokenServiceCredential.cs
- ToolStripPanelRow.cs
- NativeWrapper.cs
- ArrayList.cs
- Thickness.cs
- AxHost.cs