Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- SafeProcessHandle.cs
- NativeMethodsCLR.cs
- TreeViewDesigner.cs
- ToolStripItemImageRenderEventArgs.cs
- XmlSchemaInferenceException.cs
- RegionInfo.cs
- XmlTypeAttribute.cs
- ADMembershipUser.cs
- CompilerState.cs
- SmiGettersStream.cs
- IncomingWebResponseContext.cs
- UInt16Storage.cs
- EditorPartCollection.cs
- XmlSerializationWriter.cs
- ValueQuery.cs
- ActiveXSite.cs
- GridItemPatternIdentifiers.cs
- FormViewCommandEventArgs.cs
- SiteMapSection.cs
- BinaryMessageFormatter.cs
- IChannel.cs
- SettingsPropertyValue.cs
- Page.cs
- RequestQueryProcessor.cs
- HierarchicalDataSourceControl.cs
- OracleInternalConnection.cs
- LineVisual.cs
- WebControlsSection.cs
- LinearGradientBrush.cs
- CodeNamespace.cs
- DataGridCaption.cs
- CornerRadiusConverter.cs
- QueryRewriter.cs
- RightsManagementEncryptedStream.cs
- StorageRoot.cs
- PageMediaType.cs
- StreamUpdate.cs
- ApplicationException.cs
- DigestComparer.cs
- CapabilitiesPattern.cs
- StreamWriter.cs
- ConstraintManager.cs
- SimpleApplicationHost.cs
- TextEditorTyping.cs
- CounterCreationData.cs
- TrackingServices.cs
- CodeRegionDirective.cs
- LinkClickEvent.cs
- ContextBase.cs
- HandlerElementCollection.cs
- FixedSOMContainer.cs
- SelectiveScrollingGrid.cs
- CodeSnippetTypeMember.cs
- SeparatorAutomationPeer.cs
- CombinedTcpChannel.cs
- PresentationAppDomainManager.cs
- Instrumentation.cs
- SqlConnectionFactory.cs
- CopyNodeSetAction.cs
- PreviewKeyDownEventArgs.cs
- StringPropertyBuilder.cs
- QEncodedStream.cs
- XmlFormatWriterGenerator.cs
- NegotiateStream.cs
- ClientTargetCollection.cs
- DecimalMinMaxAggregationOperator.cs
- HtmlContainerControl.cs
- EnvelopedPkcs7.cs
- LoadRetryAsyncResult.cs
- autovalidator.cs
- LogWriteRestartAreaAsyncResult.cs
- UnsafeNativeMethodsTablet.cs
- Interlocked.cs
- ColorPalette.cs
- ProjectionCamera.cs
- Token.cs
- XmlMemberMapping.cs
- MaskedTextBox.cs
- TextRangeAdaptor.cs
- ListBindingHelper.cs
- PkcsMisc.cs
- TypeSystem.cs
- PageTheme.cs
- VisualBrush.cs
- TableItemPattern.cs
- InputLanguageCollection.cs
- HtmlLink.cs
- SynchronousReceiveElement.cs
- FindResponse.cs
- SamlAdvice.cs
- AnnotationHelper.cs
- RoutedEventArgs.cs
- PersonalizationAdministration.cs
- RouteUrlExpressionBuilder.cs
- WmlCommandAdapter.cs
- UserValidatedEventArgs.cs
- mongolianshape.cs
- FacetEnabledSchemaElement.cs
- FacetDescription.cs
- Utils.cs