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
- EventLogRecord.cs
- CodeGotoStatement.cs
- SchemaDeclBase.cs
- ProxyManager.cs
- BamlRecordHelper.cs
- WebPartEventArgs.cs
- ProtectedProviderSettings.cs
- Aggregates.cs
- SerTrace.cs
- SoapSchemaExporter.cs
- SmiEventSink_DeferedProcessing.cs
- IgnoreFileBuildProvider.cs
- WaitHandle.cs
- RegexCompiler.cs
- ObjectDataSourceView.cs
- CatalogPartChrome.cs
- DesignerOptionService.cs
- DispatchChannelSink.cs
- TreeViewAutomationPeer.cs
- SettingsProperty.cs
- DataBinder.cs
- TextParagraphCache.cs
- DataListItemCollection.cs
- KeyedCollection.cs
- _LazyAsyncResult.cs
- NameObjectCollectionBase.cs
- TlsSspiNegotiation.cs
- HttpServerVarsCollection.cs
- SiteMapNodeItem.cs
- WorkflowApplicationCompletedEventArgs.cs
- RequestCache.cs
- FatalException.cs
- HtmlTable.cs
- DrawingContextDrawingContextWalker.cs
- JsonUriDataContract.cs
- WorkflowClientDeliverMessageWrapper.cs
- DbException.cs
- WebConfigurationHost.cs
- IxmlLineInfo.cs
- LogEntryDeserializer.cs
- IdentitySection.cs
- ListBindingConverter.cs
- SchemaConstraints.cs
- RuntimeIdentifierPropertyAttribute.cs
- CreateUserWizardStep.cs
- ActivityInstanceReference.cs
- SolidBrush.cs
- CodeExpressionCollection.cs
- TemplateControlBuildProvider.cs
- InternalConfigEventArgs.cs
- SafeNativeMemoryHandle.cs
- TripleDES.cs
- _LocalDataStore.cs
- ApplicationServiceManager.cs
- DirtyTextRange.cs
- InputProcessorProfilesLoader.cs
- ADMembershipUser.cs
- CookieProtection.cs
- DbConnectionPoolCounters.cs
- ResXDataNode.cs
- IsolatedStorageException.cs
- _ConnectionGroup.cs
- ElementUtil.cs
- XmlEntity.cs
- EncodingNLS.cs
- DiagnosticTrace.cs
- SqlDataReaderSmi.cs
- _IPv6Address.cs
- SemanticBasicElement.cs
- EdmProviderManifest.cs
- CustomAttributeSerializer.cs
- SoapTypeAttribute.cs
- DataTableMapping.cs
- GridViewEditEventArgs.cs
- CSharpCodeProvider.cs
- SystemException.cs
- DataTableCollection.cs
- XmlLinkedNode.cs
- CodeArrayCreateExpression.cs
- BitmapEffectInput.cs
- Size3D.cs
- NewArrayExpression.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- ParseNumbers.cs
- AttributeQuery.cs
- StrokeNodeData.cs
- AttachedPropertyMethodSelector.cs
- FunctionParameter.cs
- TextRange.cs
- ScriptResourceMapping.cs
- PersonalizationStateQuery.cs
- Point4DValueSerializer.cs
- RenderCapability.cs
- ThicknessKeyFrameCollection.cs
- ListBoxItem.cs
- InkCanvasInnerCanvas.cs
- ProviderCommandInfoUtils.cs
- DataStreams.cs
- ListBoxItemWrapperAutomationPeer.cs
- HttpListenerPrefixCollection.cs