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
- WithParamAction.cs
- ConfigurationElement.cs
- DataGridRelationshipRow.cs
- PerformanceCounterCategory.cs
- TableLayoutColumnStyleCollection.cs
- IODescriptionAttribute.cs
- BulletChrome.cs
- UnionExpr.cs
- DataGridViewTextBoxColumn.cs
- SafeFindHandle.cs
- FamilyTypeface.cs
- UrlMappingsModule.cs
- DataBoundControlAdapter.cs
- QueryOperationResponseOfT.cs
- RequestNavigateEventArgs.cs
- CloseCryptoHandleRequest.cs
- ClientFormsIdentity.cs
- TraceLog.cs
- SyndicationSerializer.cs
- TextureBrush.cs
- StreamedWorkflowDefinitionContext.cs
- RightNameExpirationInfoPair.cs
- OletxTransactionManager.cs
- ToolboxItemAttribute.cs
- ElementInit.cs
- BufferedOutputAsyncStream.cs
- ConstructorBuilder.cs
- WebPartDesigner.cs
- HighlightVisual.cs
- TextRangeSerialization.cs
- WebSysDefaultValueAttribute.cs
- ListBindingConverter.cs
- SplitContainerDesigner.cs
- MarginsConverter.cs
- TextBlock.cs
- SystemTcpConnection.cs
- TeredoHelper.cs
- FtpWebRequest.cs
- UserControlParser.cs
- COM2IDispatchConverter.cs
- HtmlInputRadioButton.cs
- Freezable.cs
- FixedNode.cs
- XamlPointCollectionSerializer.cs
- TextEditorContextMenu.cs
- StringValidatorAttribute.cs
- TraceShell.cs
- CellQuery.cs
- SystemKeyConverter.cs
- BaseAppDomainProtocolHandler.cs
- SelectiveScrollingGrid.cs
- DataGridSortCommandEventArgs.cs
- Stylesheet.cs
- GeneralTransformGroup.cs
- LocalizableAttribute.cs
- ConsoleCancelEventArgs.cs
- DbConnectionOptions.cs
- ActivityBindForm.Designer.cs
- InstanceOwnerException.cs
- MonitoringDescriptionAttribute.cs
- WinEventTracker.cs
- DataTableMapping.cs
- HtmlInputFile.cs
- UnsafeNativeMethodsMilCoreApi.cs
- SortDescription.cs
- Serializer.cs
- Thumb.cs
- Selector.cs
- ClientApiGenerator.cs
- _SslState.cs
- SqlCommand.cs
- InstanceOwnerException.cs
- ClientScriptManager.cs
- RadioButton.cs
- MouseEventArgs.cs
- ErrorRuntimeConfig.cs
- LocalizedNameDescriptionPair.cs
- grammarelement.cs
- DesignerSerializationOptionsAttribute.cs
- DataContractJsonSerializerOperationBehavior.cs
- mansign.cs
- Number.cs
- FixedSchema.cs
- X509Certificate2Collection.cs
- OleTxTransaction.cs
- CapacityStreamGeometryContext.cs
- IisTraceWebEventProvider.cs
- Normalization.cs
- WebPartZoneBase.cs
- InputProcessorProfiles.cs
- DeclaredTypeValidatorAttribute.cs
- PermissionSetTriple.cs
- ProxyGenerator.cs
- XmlSchemaExternal.cs
- TypeSystemHelpers.cs
- Model3DCollection.cs
- ToolStripMenuItem.cs
- CodeParameterDeclarationExpressionCollection.cs
- WindowsAuthenticationEventArgs.cs
- Control.cs