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
- MimeFormatter.cs
- CachedRequestParams.cs
- Command.cs
- NativeMethods.cs
- DescendentsWalker.cs
- Invariant.cs
- arabicshape.cs
- ChannelSinkStacks.cs
- CFStream.cs
- AttributeData.cs
- ProtocolViolationException.cs
- NativeObjectSecurity.cs
- XAMLParseException.cs
- SimpleBitVector32.cs
- WindowsNonControl.cs
- DesignerVerb.cs
- DataGridViewDataConnection.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- SoapReflectionImporter.cs
- OneOf.cs
- AdRotator.cs
- ResourceDisplayNameAttribute.cs
- SqlReferenceCollection.cs
- InstanceLockTracking.cs
- ProcessHostConfigUtils.cs
- RepeatButtonAutomationPeer.cs
- CodeValidator.cs
- EditableLabelControl.cs
- OneToOneMappingSerializer.cs
- WebPartHelpVerb.cs
- PixelShader.cs
- XmlNamedNodeMap.cs
- BinaryUtilClasses.cs
- TextEmbeddedObject.cs
- FlowSwitchLink.cs
- UrlPropertyAttribute.cs
- SafeRightsManagementQueryHandle.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- Message.cs
- UnknownBitmapEncoder.cs
- MouseCaptureWithinProperty.cs
- OutputScopeManager.cs
- RolePrincipal.cs
- FtpRequestCacheValidator.cs
- CommentEmitter.cs
- SqlStream.cs
- MergeLocalizationDirectives.cs
- DocComment.cs
- DataRowChangeEvent.cs
- UnsafeNativeMethods.cs
- FamilyCollection.cs
- PersonalizableTypeEntry.cs
- Splitter.cs
- SqlDataReaderSmi.cs
- ToolStripScrollButton.cs
- BlurBitmapEffect.cs
- SizeChangedEventArgs.cs
- BinaryFormatter.cs
- LinqDataSourceDisposeEventArgs.cs
- TableChangeProcessor.cs
- PointKeyFrameCollection.cs
- PermissionListSet.cs
- EventArgs.cs
- WmlPanelAdapter.cs
- httpapplicationstate.cs
- ProviderSettingsCollection.cs
- StreamMarshaler.cs
- UnrecognizedAssertionsBindingElement.cs
- RenderCapability.cs
- HttpListenerPrefixCollection.cs
- RelationshipNavigation.cs
- DictionaryBase.cs
- DataGrid.cs
- TakeOrSkipWhileQueryOperator.cs
- SqlParameter.cs
- TransmissionStrategy.cs
- TimeBoundedCache.cs
- SplitterPanelDesigner.cs
- Gdiplus.cs
- ClientBuildManagerCallback.cs
- MemberDomainMap.cs
- WebBrowserDocumentCompletedEventHandler.cs
- Command.cs
- ArraySortHelper.cs
- BufferBuilder.cs
- GiveFeedbackEventArgs.cs
- ServiceObjectContainer.cs
- SplineKeyFrames.cs
- MergeFilterQuery.cs
- HttpRawResponse.cs
- HtmlTableRow.cs
- InheritanceContextHelper.cs
- DataRow.cs
- TdsEnums.cs
- CheckStoreFileValidityRequest.cs
- HtmlHistory.cs
- CngAlgorithm.cs
- ProfilePropertySettings.cs
- SingleTagSectionHandler.cs
- SecurityHelper.cs