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
- OperationContractGenerationContext.cs
- Matrix.cs
- DataRecordObjectView.cs
- NamespaceInfo.cs
- PlatformNotSupportedException.cs
- SourceFilter.cs
- EdmRelationshipRoleAttribute.cs
- ItemCheckedEvent.cs
- IntMinMaxAggregationOperator.cs
- PictureBox.cs
- basecomparevalidator.cs
- UriExt.cs
- HttpInputStream.cs
- MailWebEventProvider.cs
- DBConnection.cs
- EmbeddedMailObjectsCollection.cs
- PersonalizationAdministration.cs
- CmsUtils.cs
- XhtmlConformanceSection.cs
- User.cs
- GridViewDeletedEventArgs.cs
- Brush.cs
- PolyQuadraticBezierSegment.cs
- LinearKeyFrames.cs
- ProgressBar.cs
- StoreAnnotationsMap.cs
- FlowDocumentReader.cs
- FormsAuthentication.cs
- ListSourceHelper.cs
- ListBoxItemAutomationPeer.cs
- SizeAnimationUsingKeyFrames.cs
- TransformedBitmap.cs
- XmlLoader.cs
- SwitchAttribute.cs
- TraceSection.cs
- SimpleLine.cs
- Emitter.cs
- ConstructorNeedsTagAttribute.cs
- SHA512Cng.cs
- KeySpline.cs
- MeasurementDCInfo.cs
- Vector3DAnimation.cs
- CodeExpressionStatement.cs
- ApplicationTrust.cs
- StrongNameIdentityPermission.cs
- LayoutEvent.cs
- CompiledScopeCriteria.cs
- ProcessModelSection.cs
- SafeMILHandle.cs
- CodeCastExpression.cs
- XPathSelectionIterator.cs
- XpsS0ValidatingLoader.cs
- sqlmetadatafactory.cs
- OrderedDictionary.cs
- ViewGenResults.cs
- ScriptBehaviorDescriptor.cs
- DesignerLinkAdapter.cs
- GridViewSelectEventArgs.cs
- SqlRewriteScalarSubqueries.cs
- CodeGroup.cs
- AnnotationComponentChooser.cs
- ParallelLoopState.cs
- ApplicationInfo.cs
- ConfigurationErrorsException.cs
- TabletDeviceInfo.cs
- ReadWriteSpinLock.cs
- PackWebResponse.cs
- ListSourceHelper.cs
- RuleRefElement.cs
- StructuralObject.cs
- UniqueConstraint.cs
- HtmlContainerControl.cs
- DataGridViewLinkColumn.cs
- __ConsoleStream.cs
- InkCollectionBehavior.cs
- GeneralTransform3DGroup.cs
- ISAPIWorkerRequest.cs
- Renderer.cs
- SqlXml.cs
- SingleBodyParameterMessageFormatter.cs
- PassportIdentity.cs
- DataContractSerializerSection.cs
- HierarchicalDataBoundControlAdapter.cs
- ImportCatalogPart.cs
- ListControl.cs
- UrlUtility.cs
- Merger.cs
- Condition.cs
- LicenseManager.cs
- ScrollChrome.cs
- DiscreteKeyFrames.cs
- TaskExtensions.cs
- dataprotectionpermissionattribute.cs
- FlagsAttribute.cs
- GenericEnumerator.cs
- SamlAdvice.cs
- EntityReference.cs
- BitmapImage.cs
- NetworkInformationPermission.cs
- HttpListener.cs