Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- SubtreeProcessor.cs
- ListControl.cs
- EntityDataSourceQueryBuilder.cs
- Events.cs
- InternalResources.cs
- TimeSpanFormat.cs
- UnsafeNativeMethods.cs
- ArgumentException.cs
- _Connection.cs
- TimeEnumHelper.cs
- EncoderReplacementFallback.cs
- SslStreamSecurityElement.cs
- RenderOptions.cs
- GenericAuthenticationEventArgs.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- WrapPanel.cs
- ChildDocumentBlock.cs
- ObjectView.cs
- ColumnWidthChangedEvent.cs
- TextDecorations.cs
- XmlResolver.cs
- WindowProviderWrapper.cs
- SortAction.cs
- DrawingAttributeSerializer.cs
- FlowDocumentFormatter.cs
- basecomparevalidator.cs
- FormsAuthenticationCredentials.cs
- IPHostEntry.cs
- BlobPersonalizationState.cs
- EditorResources.cs
- XmlSchemaSimpleTypeList.cs
- PersistChildrenAttribute.cs
- StackOverflowException.cs
- ZipIOLocalFileDataDescriptor.cs
- PrinterSettings.cs
- NamespaceEmitter.cs
- TracingConnection.cs
- webbrowsersite.cs
- MouseCaptureWithinProperty.cs
- DrawListViewItemEventArgs.cs
- TrackBarDesigner.cs
- TrustLevel.cs
- ToolStripDesignerAvailabilityAttribute.cs
- SvcMapFileSerializer.cs
- Classification.cs
- WizardStepCollectionEditor.cs
- CellConstant.cs
- XmlCountingReader.cs
- WebPartTransformer.cs
- Queue.cs
- ActivityInterfaces.cs
- StaticExtensionConverter.cs
- CodeGotoStatement.cs
- GridViewSelectEventArgs.cs
- Separator.cs
- XmlNullResolver.cs
- RegexRunnerFactory.cs
- ManifestResourceInfo.cs
- NonBatchDirectoryCompiler.cs
- XmlProcessingInstruction.cs
- EntityContainerEntitySetDefiningQuery.cs
- XmlWrappingWriter.cs
- COM2TypeInfoProcessor.cs
- DataGridLinkButton.cs
- _NegoState.cs
- StringReader.cs
- ObjectStorage.cs
- QuaternionKeyFrameCollection.cs
- CallSite.cs
- _NegotiateClient.cs
- DrawingContextDrawingContextWalker.cs
- SoapEnumAttribute.cs
- EtwTrace.cs
- AsyncStreamReader.cs
- Span.cs
- SimpleHandlerFactory.cs
- ItemContainerGenerator.cs
- TraceXPathNavigator.cs
- DynamicPropertyHolder.cs
- Type.cs
- TraceContextRecord.cs
- InternalConfigRoot.cs
- DbFunctionCommandTree.cs
- Label.cs
- EtwTrace.cs
- BinaryParser.cs
- StrongNameIdentityPermission.cs
- SystemMulticastIPAddressInformation.cs
- PartitionResolver.cs
- NamespaceList.cs
- AbandonedMutexException.cs
- CallbackValidatorAttribute.cs
- Trace.cs
- WorkflowServiceHostFactory.cs
- DataTable.cs
- RequestTimeoutManager.cs
- TransformPatternIdentifiers.cs
- ArraySegment.cs
- _ProxyChain.cs
- Animatable.cs