Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / StyleSelector.cs / 1305600 / 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
- SecurityResources.cs
- AccessKeyManager.cs
- FilterQueryOptionExpression.cs
- Maps.cs
- AppliedDeviceFiltersDialog.cs
- AnimationClockResource.cs
- SettingsAttributes.cs
- FunctionNode.cs
- FamilyMap.cs
- WebPartMenu.cs
- IdentifierCreationService.cs
- GridViewRowPresenter.cs
- ControlBindingsCollection.cs
- MachineKeyConverter.cs
- XPathDocumentNavigator.cs
- CompModHelpers.cs
- Clipboard.cs
- ButtonBase.cs
- IssuedSecurityTokenProvider.cs
- NumericUpDownAccelerationCollection.cs
- FSWPathEditor.cs
- WindowsGrip.cs
- SafeWaitHandle.cs
- Attachment.cs
- AutomationInteropProvider.cs
- MarkupExtensionParser.cs
- MimeParameters.cs
- shaperfactoryquerycachekey.cs
- ResXBuildProvider.cs
- ListViewEditEventArgs.cs
- StartUpEventArgs.cs
- DataGridViewLayoutData.cs
- RequestQueue.cs
- PictureBox.cs
- LinkedResourceCollection.cs
- PKCS1MaskGenerationMethod.cs
- GeneralTransform3DTo2DTo3D.cs
- Bezier.cs
- ComponentRenameEvent.cs
- TraceRecords.cs
- ScriptingSectionGroup.cs
- DocumentSchemaValidator.cs
- DataGridViewComboBoxCell.cs
- ReflectionPermission.cs
- CodeIdentifiers.cs
- VirtualDirectoryMappingCollection.cs
- DataGridItemEventArgs.cs
- ISFClipboardData.cs
- ActiveXSite.cs
- DefaultHttpHandler.cs
- ConfigDefinitionUpdates.cs
- ComponentCodeDomSerializer.cs
- DescendantQuery.cs
- Freezable.cs
- RoleService.cs
- Serializer.cs
- StorageScalarPropertyMapping.cs
- _NegotiateClient.cs
- WebPartConnectionsEventArgs.cs
- RewritingValidator.cs
- HostVisual.cs
- PackagePartCollection.cs
- DataGridViewCellFormattingEventArgs.cs
- SQLDouble.cs
- SoapObjectInfo.cs
- GridItem.cs
- SymbolEqualComparer.cs
- UnmanagedBitmapWrapper.cs
- basenumberconverter.cs
- SerializationSectionGroup.cs
- StrokeRenderer.cs
- BCryptHashAlgorithm.cs
- InputLangChangeEvent.cs
- ScrollableControl.cs
- ClientTargetCollection.cs
- ToolStripItem.cs
- SynchronizationContextHelper.cs
- DebugInfoGenerator.cs
- DesignRelation.cs
- GPPOINT.cs
- DataObjectAttribute.cs
- WindowsRichEditRange.cs
- SystemIPInterfaceProperties.cs
- Line.cs
- SynchronizingStream.cs
- SqlMethodTransformer.cs
- BmpBitmapEncoder.cs
- EventListenerClientSide.cs
- SymLanguageVendor.cs
- Int16AnimationBase.cs
- EntityDataSourceContainerNameItem.cs
- CompositeActivityDesigner.cs
- UIElementHelper.cs
- Models.cs
- FrameDimension.cs
- WindowInteropHelper.cs
- WorkflowDataContext.cs
- safelinkcollection.cs
- HttpChannelHelper.cs
- EventSetterHandlerConverter.cs