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
- VectorAnimation.cs
- Variant.cs
- FormatterConverter.cs
- CodePageUtils.cs
- FontConverter.cs
- mediaclock.cs
- RequestQueryParser.cs
- Connection.cs
- Quad.cs
- OleDbSchemaGuid.cs
- UpdateProgress.cs
- PersonalizationEntry.cs
- ScriptingRoleServiceSection.cs
- TracedNativeMethods.cs
- MetabaseSettingsIis7.cs
- Attributes.cs
- basemetadatamappingvisitor.cs
- TypefaceMap.cs
- COM2TypeInfoProcessor.cs
- LicenseProviderAttribute.cs
- SymLanguageVendor.cs
- WebServiceMethodData.cs
- MaskInputRejectedEventArgs.cs
- TextElementCollectionHelper.cs
- SamlAssertionKeyIdentifierClause.cs
- PageThemeCodeDomTreeGenerator.cs
- BeginStoryboard.cs
- LinqDataSourceContextData.cs
- CacheOutputQuery.cs
- MenuTracker.cs
- ClockController.cs
- GeneratedView.cs
- QilStrConcat.cs
- XmlTextWriter.cs
- shaper.cs
- HttpListenerRequestTraceRecord.cs
- UnicodeEncoding.cs
- ErrorLog.cs
- ChameleonKey.cs
- RtfToXamlLexer.cs
- ComponentCache.cs
- FloatUtil.cs
- HMAC.cs
- DiffuseMaterial.cs
- NestedContainer.cs
- NodeLabelEditEvent.cs
- MessageQueuePermission.cs
- RectangleGeometry.cs
- XmlSortKeyAccumulator.cs
- EventlogProvider.cs
- DebuggerAttributes.cs
- EntityContainer.cs
- WebBrowserDocumentCompletedEventHandler.cs
- ClrPerspective.cs
- ControlUtil.cs
- QueryCursorEventArgs.cs
- shaperfactory.cs
- TemplatePagerField.cs
- LocalFileSettingsProvider.cs
- BoundColumn.cs
- XmlSequenceWriter.cs
- MenuItemBindingCollection.cs
- DynamicUpdateCommand.cs
- DesignerGenericWebPart.cs
- IndexOutOfRangeException.cs
- CompiledQuery.cs
- TypeHelper.cs
- StylusPointCollection.cs
- TrackingProfile.cs
- ValidationHelper.cs
- UnconditionalPolicy.cs
- AstNode.cs
- MultiBinding.cs
- GC.cs
- TextServicesCompartmentEventSink.cs
- PropertyBuilder.cs
- SByteConverter.cs
- CodeTypeReferenceCollection.cs
- XmlLoader.cs
- XpsFont.cs
- SqlConnectionPoolProviderInfo.cs
- KeyMatchBuilder.cs
- DataServiceOperationContext.cs
- ConfigsHelper.cs
- AdornedElementPlaceholder.cs
- DataReceivedEventArgs.cs
- DataControlHelper.cs
- EntityDataSourceColumn.cs
- SchemaTableColumn.cs
- ToolStripLocationCancelEventArgs.cs
- WindowsSlider.cs
- PreservationFileReader.cs
- AttributeEmitter.cs
- ParameterBinding.cs
- ScopelessEnumAttribute.cs
- MsdtcWrapper.cs
- SequenceDesigner.cs
- EntryIndex.cs
- BindingExpressionUncommonField.cs
- XmlUtil.cs