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
- CultureMapper.cs
- MexTcpBindingElement.cs
- ColorConvertedBitmap.cs
- DataGridViewColumnStateChangedEventArgs.cs
- PartialArray.cs
- BidOverLoads.cs
- Separator.cs
- X509KeyIdentifierClauseType.cs
- InstanceKeyNotReadyException.cs
- PageBreakRecord.cs
- SizeLimitedCache.cs
- Emitter.cs
- ColumnWidthChangingEvent.cs
- SmtpClient.cs
- COSERVERINFO.cs
- CodeTypeReferenceExpression.cs
- ObjectDisposedException.cs
- MiniMapControl.xaml.cs
- ConfigurationPropertyCollection.cs
- TaskCanceledException.cs
- SQLDoubleStorage.cs
- AnimationTimeline.cs
- cookiecollection.cs
- ProtocolsSection.cs
- ItemsControl.cs
- SuppressMessageAttribute.cs
- OptimizedTemplateContent.cs
- DbProviderFactoriesConfigurationHandler.cs
- HelpOperationInvoker.cs
- ArraySegment.cs
- FontWeightConverter.cs
- MailAddressParser.cs
- unsafenativemethodsother.cs
- RegexCode.cs
- InstanceNotFoundException.cs
- DrawToolTipEventArgs.cs
- WebServiceMethodData.cs
- GuidelineCollection.cs
- MethodToken.cs
- XmlDocumentSchema.cs
- TimersDescriptionAttribute.cs
- ILGen.cs
- SqlDataReader.cs
- TextEditor.cs
- DataPagerFieldCommandEventArgs.cs
- AuthenticationManager.cs
- MethodBuilderInstantiation.cs
- Html32TextWriter.cs
- ObjectQueryProvider.cs
- SqlDataSourceQueryEditorForm.cs
- COAUTHIDENTITY.cs
- NetPeerTcpBindingCollectionElement.cs
- ClientSettingsSection.cs
- GridViewRowCollection.cs
- SoapProtocolImporter.cs
- ObjectDataSourceSelectingEventArgs.cs
- TabPage.cs
- BuildDependencySet.cs
- StorageMappingItemLoader.cs
- System.Data.OracleClient_BID.cs
- SafeSystemMetrics.cs
- LiteralDesigner.cs
- WebSysDefaultValueAttribute.cs
- StrokeFIndices.cs
- WCFServiceClientProxyGenerator.cs
- ThreadStartException.cs
- AuthenticodeSignatureInformation.cs
- StandardTransformFactory.cs
- CustomAttributeFormatException.cs
- ClientRuntimeConfig.cs
- DriveInfo.cs
- TypeHelpers.cs
- ObjectKeyFrameCollection.cs
- ContainerUtilities.cs
- TraceContextRecord.cs
- IgnoreDeviceFilterElementCollection.cs
- TextServicesCompartment.cs
- FormCollection.cs
- SizeIndependentAnimationStorage.cs
- WindowsAuthenticationEventArgs.cs
- FontConverter.cs
- PropertyChangeTracker.cs
- VersionedStreamOwner.cs
- DeclarativeCatalogPartDesigner.cs
- NamespaceDecl.cs
- RelationshipFixer.cs
- AutomationEventArgs.cs
- EmbeddedMailObjectsCollection.cs
- RelatedPropertyManager.cs
- CompensationExtension.cs
- DesignerCategoryAttribute.cs
- GlyphRunDrawing.cs
- MessagePropertyVariants.cs
- SchemaNames.cs
- WindowExtensionMethods.cs
- BasicHttpBinding.cs
- CodeTypeMemberCollection.cs
- JsonReader.cs
- IChannel.cs
- SqlWebEventProvider.cs